summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-02-24 19:51:45 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2014-02-24 20:00:01 +0100
commit881f6847bcf45a21ce8ea691d8ede1190393bcc8 (patch)
tree76d754dc28757d63f21034eae04d3ec905be69d1 /pykolab
parenta5730c9eec6c25882e2e9b7a6ef1db28cfabf20b (diff)
downloadpykolab-881f6847bcf45a21ce8ea691d8ede1190393bcc8.tar.gz
Copy delegator's role and cutype to delegatees
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/xml/attendee.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pykolab/xml/attendee.py b/pykolab/xml/attendee.py
index 98b823d..15f1c1a 100644
--- a/pykolab/xml/attendee.py
+++ b/pykolab/xml/attendee.py
@@ -78,6 +78,8 @@ class Attendee(kolabformat.Attendee):
if not isinstance(delegator, Attendee):
raise ValueError, _("Not a valid attendee")
else:
+ self.set_role(delegator.get_role())
+ self.set_cutype(delegator.get_cutype())
crefs.append(delegator.contactreference)
if len(crefs) == 0: