Allow DAV:displayname property for all collections
This commit is contained in:
parent
d6d2c006ad
commit
8551319682
@ -996,13 +996,16 @@ def _propfind_response(base_prefix, path, item, props, user, write=False,
|
|||||||
elif tag == _tag("RADICALE", "displayname"):
|
elif tag == _tag("RADICALE", "displayname"):
|
||||||
# Only for internal use by the web interface
|
# Only for internal use by the web interface
|
||||||
displayname = item.get_meta("D:displayname")
|
displayname = item.get_meta("D:displayname")
|
||||||
if is_leaf and displayname is not None:
|
if displayname is not None:
|
||||||
element.text = displayname
|
element.text = displayname
|
||||||
else:
|
else:
|
||||||
is404 = True
|
is404 = True
|
||||||
elif tag == _tag("D", "displayname"):
|
elif tag == _tag("D", "displayname"):
|
||||||
if is_leaf:
|
displayname = item.get_meta("D:displayname")
|
||||||
element.text = item.get_meta("D:displayname") or item.path
|
if not displayname and is_leaf:
|
||||||
|
displayname = item.path
|
||||||
|
if displayname is not None:
|
||||||
|
element.text = displayname
|
||||||
else:
|
else:
|
||||||
is404 = True
|
is404 = True
|
||||||
elif tag == _tag("CS", "getctag"):
|
elif tag == _tag("CS", "getctag"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user