Fix a lot of details
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user