1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

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):