pykolab/xml
Thomas Brüderli
bruederli at kolabsys.com
Mon Feb 24 11:02:57 CET 2014
pykolab/xml/event.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 1c9741236e31f8c528e8911b9ee1c0676eba3cd8
Author: Thomas Bruederli <thomas at roundcube.net>
Date: Mon Feb 24 11:02:47 2014 +0100
Cast parameter item to string to meet the expecations of libkolabxml
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)
More information about the commits
mailing list