From 8551319682a0048117480db649bc6712505b8ab4 Mon Sep 17 00:00:00 2001 From: Unrud Date: Sun, 17 Sep 2017 14:03:55 +0200 Subject: [PATCH] Allow DAV:displayname property for all collections --- radicale/xmlutils.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 8b6218d..1017936 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -996,13 +996,16 @@ def _propfind_response(base_prefix, path, item, props, user, write=False, elif tag == _tag("RADICALE", "displayname"): # Only for internal use by the web interface displayname = item.get_meta("D:displayname") - if is_leaf and displayname is not None: + if displayname is not None: element.text = displayname else: is404 = True elif tag == _tag("D", "displayname"): - if is_leaf: - element.text = item.get_meta("D:displayname") or item.path + displayname = item.get_meta("D:displayname") + if not displayname and is_leaf: + displayname = item.path + if displayname is not None: + element.text = displayname else: is404 = True elif tag == _tag("CS", "getctag"):