From c29fd1ca619604d118d063b1107208b15ebd0f5d Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 13 Aug 2016 00:19:14 +0200 Subject: [PATCH] Check that item is a collection --- radicale/xmlutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 4515e19..e92ff49 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -581,7 +581,7 @@ def _propfind_response(path, item, props, user, write=False): _tag("D", "principal-URL"), _tag("CR", "addressbook-home-set"), _tag("C", "calendar-home-set")) and - collection.is_principal): + collection.is_principal and is_collection): tag = ET.Element(_tag("D", "href")) tag.text = _href(collection, path) element.append(tag)