From d09b16c5ad9c19fb23b1dcee556158e246eb5e55 Mon Sep 17 00:00:00 2001 From: Christoph Polcin Date: Sun, 5 Jan 2014 21:21:17 +0100 Subject: [PATCH] Fix principal-collection-set in PROPFIND response --- radicale/xmlutils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index f94ed5e6..3b29036f 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -284,8 +284,11 @@ def _propfind_response(path, item, props, user): is404 = True tag = ET.Element(_tag("D", "unauthenticated")) element.append(tag) - elif tag in (_tag("D", "principal-collection-set"), - _tag("C", "calendar-user-address-set"), + elif tag == _tag("D", "principal-collection-set"): + tag = ET.Element(_tag("D", "href")) + tag.text = _href("/") + element.append(tag) + elif tag in (_tag("C", "calendar-user-address-set"), _tag("CR", "addressbook-home-set"), _tag("C", "calendar-home-set")): tag = ET.Element(_tag("D", "href"))