summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-05 00:26:48 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-05 00:26:48 (GMT)
commitacbede72e43a4f38a1cb31e920a06dcdd13be2d2 (patch)
tree21176b7e7ac412260924909d9cf9c2360bd704aa
parentd9f5e3568f9d9298ea44194c8c10cf547652a5e1 (diff)
downloadpykolab-acbede72e43a4f38a1cb31e920a06dcdd13be2d2.tar.gz
Treat the comment property as list for iCal export
-rw-r--r--pykolab/xml/event.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 076eb39..a9db73e 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -521,6 +521,12 @@ class Event(object):
def get_ical_sequence(self):
return str(self.event.sequence()) if self.event.sequence() else None
+ def get_ical_comment(self):
+ comment = self.get_comment()
+ if comment is not None:
+ return [ comment ]
+ return None
+
def get_location(self):
return self.event.location()