From 70f8ee94d956ba639d63c7a8437d0b748730eeba Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 17 Jun 2013 11:30:26 +0200 Subject: [PATCH] Fix supported-calendar-component-set for collection's components --- radicale/xmlutils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index a3d7236..72b826e 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -273,7 +273,8 @@ def _propfind_response(path, item, props, user): # This is not a Todo # pylint: disable=W0511 human_tag = _tag_from_clark(tag) - if human_tag in collection_props: + if is_collection and human_tag in collection_props: + # TODO: what do we have to do if it's not a collection? components = collection_props[human_tag].split(",") else: components = ("VTODO", "VEVENT", "VJOURNAL")