Fix a lot of details

This commit is contained in:
Guillaume Ayoub
2016-04-12 18:21:18 +02:00
parent 406027f3c9
commit e586569b31
4 changed files with 29 additions and 10 deletions

View File

@@ -429,7 +429,7 @@ class Application(object):
props = xmlutils.props_from_request(content)
# TODO: use this?
# timezone = props.get("C:calendar-timezone")
collection = storage.create_collection(
collection = storage.Collection.create_collection(
collection.path, tag="VCALENDAR")
for key, value in props.items():
collection.set_meta(key, value)
@@ -444,7 +444,7 @@ class Application(object):
collection = write_collections[0]
props = xmlutils.props_from_request(content)
collection = storage.create_collection(collection.path)
collection = storage.Collection.create_collection(collection.path)
for key, value in props.items():
collection.set_meta(key, value)
return client.CREATED, {}, None