summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-24 12:03:46 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-05-24 12:03:46 +0100
commitc8b897e57342e565c7f01fcbffc470c14fab73f6 (patch)
treeb02636a4e3d7ee96c2fe5a298f82235959002e36
parent63f91132045535cf7c48757fb1afbe08c7f252d6 (diff)
downloadpykolab-c8b897e57342e565c7f01fcbffc470c14fab73f6.tar.gz
For an attendee (delegator) delegating to, the participant status must be set to DELEGATED
-rw-r--r--pykolab/xml/attendee.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/xml/attendee.py b/pykolab/xml/attendee.py
index 4f06cef..98b823d 100644
--- a/pykolab/xml/attendee.py
+++ b/pykolab/xml/attendee.py
@@ -88,12 +88,13 @@ class Attendee(kolabformat.Attendee):
self.setDelegatedFrom(list(set(crefs)))
def delegate_to(self, delegatees):
+ self.set_participant_status("DELEGATED")
+
crefs = []
if not isinstance(delegatees, list):
delegatees = [delegatees]
for delegatee in delegatees:
-
if not isinstance(delegatee, Attendee):
raise ValueError, _("Not a valid attendee")
else: