diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2014-02-24 11:02:47 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2014-02-24 11:02:47 +0100 |
commit | 1c9741236e31f8c528e8911b9ee1c0676eba3cd8 (patch) | |
tree | a886a73a236287269da3798d461abf875c6af629 | |
parent | 4c5ba0430998dac6fce92b7de653b8a965619e2b (diff) | |
download | pykolab-1c9741236e31f8c528e8911b9ee1c0676eba3cd8.tar.gz |
Cast parameter item to string to meet the expecations of libkolabxml
-rw-r--r-- | pykolab/xml/event.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py index 686039b..6d3669c 100644 --- a/pykolab/xml/event.py +++ b/pykolab/xml/event.py @@ -708,7 +708,7 @@ class Event(object): params = {} if params.has_key('CN'): - cn = params['CN'] + cn = str(params['CN']) self.set_organizer(str(address), name=cn) @@ -774,7 +774,7 @@ class Event(object): def set_organizer(self, email, name=None): contactreference = ContactReference(email) if not name == None: - contactreference.set_name(name) + contactreference.setName(name) self.event.setOrganizer(contactreference) |