Merge pull request #383 from jbg/patch-1
Corrected calendar-timezone code in xmlutils.py
This commit is contained in:
commit
8ac19ae0fc
@ -349,9 +349,10 @@ def _propfind_response(path, item, props, user, write=False):
|
|||||||
elif tag == _tag("CS", "getctag"):
|
elif tag == _tag("CS", "getctag"):
|
||||||
element.text = item.etag
|
element.text = item.etag
|
||||||
elif tag == _tag("C", "calendar-timezone"):
|
elif tag == _tag("C", "calendar-timezone"):
|
||||||
timezones = {}
|
timezones = set()
|
||||||
for event in item.list():
|
for href, _ in item.list():
|
||||||
if "vtimezone" in event.content:
|
event = item.get(href)
|
||||||
|
if "vtimezone" in event.contents:
|
||||||
for timezone in event.vtimezone_list:
|
for timezone in event.vtimezone_list:
|
||||||
timezones.add(timezone)
|
timezones.add(timezone)
|
||||||
collection = vobject.iCalendar()
|
collection = vobject.iCalendar()
|
||||||
|
Loading…
Reference in New Issue
Block a user