Merge pull request #5 from oswjk/displayname
Set the D:displayname for collections in PROPFIND response
This commit is contained in:
commit
186c59cd3a
@ -299,6 +299,8 @@ def _propfind_response(path, item, props, user):
|
|||||||
elif tag == _tag("C", "calendar-timezone"):
|
elif tag == _tag("C", "calendar-timezone"):
|
||||||
element.text = ical.serialize(
|
element.text = ical.serialize(
|
||||||
item.tag, item.headers, item.timezones)
|
item.tag, item.headers, item.timezones)
|
||||||
|
elif tag == _tag("D", "displayname"):
|
||||||
|
element.text = item.name
|
||||||
else:
|
else:
|
||||||
human_tag = _tag_from_clark(tag)
|
human_tag = _tag_from_clark(tag)
|
||||||
if human_tag in collection_props:
|
if human_tag in collection_props:
|
||||||
|
Loading…
Reference in New Issue
Block a user