summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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']