summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-02-24 11:02:47 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-02-24 11:02:47 +0100
commit1c9741236e31f8c528e8911b9ee1c0676eba3cd8 (patch)
treea886a73a236287269da3798d461abf875c6af629 /pykolab
parent4c5ba0430998dac6fce92b7de653b8a965619e2b (diff)
downloadpykolab-1c9741236e31f8c528e8911b9ee1c0676eba3cd8.tar.gz
Cast parameter item to string to meet the expecations of libkolabxml
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/xml/event.py4
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)