summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-06 23:27:40 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-06 23:27:40 -0400
commit014b466cf3bdd6d4621b7a8b99dcae912175693e (patch)
tree9dcdf8016f1605be1517b6627ecf76d34cd82fd8
parentce4be6aec8a5112ead076f7a2c6a8ad7eeb403e6 (diff)
downloadpykolab-014b466cf3bdd6d4621b7a8b99dcae912175693e.tar.gz
Make sure the 'attendees' property of an iTip event always is a list
-rw-r--r--pykolab/itip/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/itip/__init__.py b/pykolab/itip/__init__.py
index 04b2d55..42e08dd 100644
--- a/pykolab/itip/__init__.py
+++ b/pykolab/itip/__init__.py
@@ -100,6 +100,9 @@ def objects_from_message(message, objname, methods=None):
itip['attendees'] = c['attendee']
+ if itip.has_key('attendee') and not isinstance(itip['attendees'], list):
+ itip['attendees'] = [c['attendee']]
+
if c.has_key('resources'):
itip['resources'] = c['resources']