summaryrefslogtreecommitdiff
path: root/pykolab
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-07 02:01:04 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-07 02:01:04 (GMT)
commit4a76d06a534417920f76fae229c7130a12d2965f (patch)
tree5e58c37948272431f2c5e956804609180092886d /pykolab
parent3b83231c0da86de019938dec586d34f8c2c52467 (diff)
downloadpykolab-4a76d06a534417920f76fae229c7130a12d2965f.tar.gz
Load attendees list from libkolabxml container
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/xml/event.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 9f0775b..ea84cc4 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -40,11 +40,16 @@ class Event(object):
self.event = kolabformat.Event()
else:
self.event = kolabformat.readEvent(from_string, False)
+ self._load_attendees()
else:
self.from_ical(from_ical)
self.uid = self.get_uid()
+ def _load_attendees(self):
+ for a in self.event.attendees():
+ self._attendees.append(Attendee(a.contact().email(), a.contact().name(), a.rsvp(), a.role(), a.partStat(), a.cutype()))
+
def add_attendee(self, email, name=None, rsvp=False, role=None, participant_status=None, cutype="INDIVIDUAL", params=None):
attendee = Attendee(email, name, rsvp, role, participant_status, cutype, params)
self._attendees.append(attendee)