summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/xml/__init__.py1
-rw-r--r--pykolab/xml/event.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/xml/__init__.py b/pykolab/xml/__init__.py
index 2c99717..00edf06 100644
--- a/pykolab/xml/__init__.py
+++ b/pykolab/xml/__init__.py
@@ -9,6 +9,7 @@ from recurrence_rule import RecurrenceRule
from event import Event
from event import EventIntegrityError
from event import InvalidEventDateError
+from event import InvalidEventStatusError
from event import event_from_ical
from event import event_from_string
from event import event_from_message
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 72c5e07..625f555 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -851,7 +851,7 @@ class Event(object):
self.event.setStatus(self.status_map[status])
elif status in self.status_map.values():
self.event.setStatus(status)
- else:
+ elif not status == kolabformat.StatusUndefined:
raise InvalidEventStatusError, _("Invalid status set: %r") % (status)
def set_summary(self, summary):