timezone is a part of the VCALENDAR file
This commit is contained in:
parent
31edc1b03d
commit
1e6a4e7fb4
@ -265,6 +265,8 @@ def _propfind_response(path, item, props):
|
|||||||
element.text = item.owner_url
|
element.text = item.owner_url
|
||||||
elif tag == _tag("CS", "getctag"):
|
elif tag == _tag("CS", "getctag"):
|
||||||
element.text = item.etag
|
element.text = item.etag
|
||||||
|
elif tag == _tag("C", "calendar-timezone"):
|
||||||
|
element.text = ical.serialize(item.headers, item.timezones)
|
||||||
else:
|
else:
|
||||||
human_tag = _tag_from_clark(tag)
|
human_tag = _tag_from_clark(tag)
|
||||||
if human_tag in calendar_props:
|
if human_tag in calendar_props:
|
||||||
@ -340,7 +342,11 @@ def proppatch(path, xml_request, calendar):
|
|||||||
|
|
||||||
with calendar.props as calendar_props:
|
with calendar.props as calendar_props:
|
||||||
for short_name, value in props_to_set.items():
|
for short_name, value in props_to_set.items():
|
||||||
calendar_props[short_name] = value
|
if short_name == 'C:calendar-timezone':
|
||||||
|
calendar.replace('', value)
|
||||||
|
calendar.write()
|
||||||
|
else:
|
||||||
|
calendar_props[short_name] = value
|
||||||
_add_propstat_to(response, short_name, 200)
|
_add_propstat_to(response, short_name, 200)
|
||||||
for short_name in props_to_remove:
|
for short_name in props_to_remove:
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user