summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/xml/event.py1
-rw-r--r--pykolab/xml/todo.py1
-rw-r--r--tests/unit/test-011-wallace_resources.py2
3 files changed, 3 insertions, 1 deletions
diff --git a/pykolab/xml/event.py b/pykolab/xml/event.py
index be49083..e064b0c 100644
--- a/pykolab/xml/event.py
+++ b/pykolab/xml/event.py
@@ -122,6 +122,7 @@ class Event(object):
else:
self.from_ical(from_ical, from_string)
+ self.set_created(self.get_created())
self.uid = self.get_uid()
def _load_attendees(self):
diff --git a/pykolab/xml/todo.py b/pykolab/xml/todo.py
index f2fde39..f73f239 100644
--- a/pykolab/xml/todo.py
+++ b/pykolab/xml/todo.py
@@ -61,6 +61,7 @@ class Todo(Event):
else:
self.from_ical(from_ical, from_string)
+ self.set_created(self.get_created())
self.uid = self.get_uid()
def from_ical(self, ical, raw):
diff --git a/tests/unit/test-011-wallace_resources.py b/tests/unit/test-011-wallace_resources.py
index 511a170..dd7834b 100644
--- a/tests/unit/test-011-wallace_resources.py
+++ b/tests/unit/test-011-wallace_resources.py
@@ -117,7 +117,7 @@ class TestWallaceResources(unittest.TestCase):
def _mock_find_resource(self, address):
if not 'resource' in address:
- return None
+ return [];
(prefix, domain) = address.split('@')
entry_dn = "cn=" + prefix + ",ou=Resources,dc=" + ",dc=".join(domain.split('.'))