MKCALENDAR now actually creates the calendar.

This commit is contained in:
Lukasz Langa
2011-05-24 16:12:35 +02:00
parent b230601ee2
commit 85e283830a
3 changed files with 50 additions and 2 deletions

View File

@@ -256,6 +256,11 @@ class Application(object):
def mkcalendar(self, environ, calendar, content):
"""Manage MKCALENDAR request."""
props = xmlutils.props_from_request(content)
tz = props.get('C:calendar-timezone')
if tz:
calendar.replace('', tz)
calendar.write()
return client.CREATED, {}, None
def options(self, environ, calendar, content):