summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2017-07-21 14:10:33 +0200
committerAleksander Machniak <machniak@kolabsys.com>2017-07-21 14:10:33 +0200
commite522f9e05addf750a835d00f62361d821aab811c (patch)
treeb2b6bc7dc7400ddd0da5ca66a686961f8e508e5b
parent7b91777e54bb816a8c88f659dc3760618cb329cf (diff)
downloadpykolab-e522f9e05addf750a835d00f62361d821aab811c.tar.gz
Fix error on CLASS:X-PERSONAL
Summary: This X-* property is standard, but not supported by Kolab format. Though we should not bail out, we should just ignore the value not the whole iTip. Reviewers: #pykolab_developers, vanmeeuwen Reviewed By: #pykolab_developers, vanmeeuwen Subscribers: vanmeeuwen Differential Revision: https://git.kolab.org/D479
-rw-r--r--pykolab/xml/event.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index 40dfaba..82c563b 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -880,7 +880,8 @@ class Event(object):
if attr == "categories":
self.add_category(value)
elif attr == "class":
- self.set_classification(value)
+ if (value and value[:2] not in ['X-', 'x-']):
+ self.set_classification(value)
elif attr == "recurrenceid":
self.set_ical_recurrenceid(value, params)
elif hasattr(self, ical_setter):