From 0670aa9fb471ff9791f6a2da967752d5341b1d93 Mon Sep 17 00:00:00 2001 From: Jasper Bryant-Greene Date: Thu, 21 Apr 2016 10:40:36 +0530 Subject: [PATCH] Corrected calendar-timezone code in xmlutils.py --- radicale/xmlutils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 31f2ca5..16fb2b9 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -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()