From 240125aca7062db5ef2130f869f09295874f16b5 Mon Sep 17 00:00:00 2001 From: deronnax Date: Tue, 19 Aug 2014 12:46:53 +0200 Subject: [PATCH] don't pick timezones when asking for contacts --- radicale/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/__init__.py b/radicale/__init__.py index 16d5f2a..8b8085c 100644 --- a/radicale/__init__.py +++ b/radicale/__init__.py @@ -416,8 +416,9 @@ class Application(object): # Get collection item item = collection.get_item(item_name) if item: - items = collection.timezones - items.append(item) + items = [item] + if collection.resource_type == "calendar": + items.extend(collection.timezones) answer_text = ical.serialize( collection.tag, collection.headers, items) etag = item.etag