summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-01 20:11:44 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-08-01 20:11:44 (GMT)
commit13661b09f90b461f5d8e0fd6f73d7639b09fbe9e (patch)
treef3171f2221a06d084fec168599ad878a3d40d8f0
parenteb2c8e73da5af5fd02244963055fcb7e26993adb (diff)
parent5aa6b400ee6ed8f5293aa33427fb769b43736907 (diff)
downloadpykolab-13661b09f90b461f5d8e0fd6f73d7639b09fbe9e.tar.gz
Merge branch 'master' of ssh://git.kolabsys.com/git/pykolab
-rw-r--r--pykolab/xml/event.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 98436d9..75b00ac 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -322,6 +322,12 @@ class Event(object):
def get_description(self):
return self.event.description()
+ def get_comment(self):
+ if hasattr(self.event, 'comment'):
+ return self.event.comment()
+ else:
+ return None
+
def get_duration(self):
duration = self.event.duration()
if duration and duration.isValid():
@@ -601,6 +607,10 @@ class Event(object):
def set_description(self, description):
self.event.setDescription(str(description))
+ def set_comment(self, comment):
+ if hasattr(self.event, 'setComment'):
+ self.event.setComment(str(comment))
+
def set_dtstamp(self, _datetime):
self.event.setLastModified(xmlutils.to_cdatetime(_datetime, False))