From 469efbb0327dbaabb32d58be72d04f2f1c95e992 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sat, 13 Aug 2016 04:52:51 +0200 Subject: [PATCH] Cosmetics --- radicale/xmlutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index df12c24..9093ae8 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -538,7 +538,7 @@ def _propfind_response(path, item, props, user, write=False): """Build and return a PROPFIND response.""" is_collection = isinstance(item, storage.BaseCollection) if is_collection: - is_leaf = bool(item.get_meta("tag")) + is_leaf = item.get_meta("tag") in ("VADDRESSBOOK", "VCALENDAR") collection = item else: collection = item.collection @@ -786,7 +786,7 @@ def report(path, xml_request, collection): if name: # Reference is an item item = collection.get(name) - if item is None: + if not item: response = _item_response(hreference, found_item=False) multistatus.append(response) continue