From 209b9e43074c4be7851791510b34bc9d7de120e8 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Thu, 24 May 2012 12:33:40 +0300 Subject: [PATCH] Set the D:displayname for collections in PROPFIND response Atleast Nokia N9 shows the displayname to user. If the property is empty, a calendar with empty name is shown. Which is annoying. --- radicale/xmlutils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index d5277a6..1834066 100644 --- a/radicale/xmlutils.py +++ b/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: