summaryrefslogtreecommitdiffstats
path: root/pykolab/xml/event.py
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/xml/event.py')
-rw-r--r--pykolab/xml/event.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index bff759d..398814f 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -702,13 +702,13 @@ class Event(object):
def get_transparency(self):
return self.event.transparency()
- def set_attendees(self, _attendees):
- self._attendees = _attendees
- self.event.setAttendees(self._attendees)
-
- # apply update to all exceptions
- for exception in self._exceptions:
- exception.merge_attendee_data(_attendees)
+ def set_attendees(self, _attendees, recursive=False):
+ if recursive:
+ self._attendees = []
+ self.update_attendees(_attendees, True)
+ else:
+ self._attendees = _attendees
+ self.event.setAttendees(self._attendees)
def set_attendee_participant_status(self, attendee, status, rsvp=None):
"""