mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Corrected calendar-timezone code in xmlutils.py
This commit is contained in:
parent
6db946080e
commit
0670aa9fb4
1 changed files with 4 additions and 3 deletions
|
@ -349,9 +349,10 @@ def _propfind_response(path, item, props, user, write=False):
|
|||
elif tag == _tag("CS", "getctag"):
|
||||
element.text = item.etag
|
||||
elif tag == _tag("C", "calendar-timezone"):
|
||||
timezones = {}
|
||||
for event in item.list():
|
||||
if "vtimezone" in event.content:
|
||||
timezones = set()
|
||||
for href, _ in item.list():
|
||||
event = item.get(href)
|
||||
if "vtimezone" in event.contents:
|
||||
for timezone in event.vtimezone_list:
|
||||
timezones.add(timezone)
|
||||
collection = vobject.iCalendar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue