소스 검색

Merge pull request #5 from oswjk/displayname

Set the D:displayname for collections in PROPFIND response
Guillaume Ayoub 13 년 전
부모
커밋
186c59cd3a
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      radicale/xmlutils.py

+ 2 - 0
radicale/xmlutils.py

@@ -299,6 +299,8 @@ def _propfind_response(path, item, props, user):
             elif tag == _tag("C", "calendar-timezone"):
                 element.text = ical.serialize(
                     item.tag, item.headers, item.timezones)
+            elif tag == _tag("D", "displayname"):
+                element.text = item.name
             else:
                 human_tag = _tag_from_clark(tag)
                 if human_tag in collection_props: