mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Merge branch 'master' of github.com:Kozea/Radicale
This commit is contained in:
commit
484933d4b6
4 changed files with 18 additions and 3 deletions
|
@ -48,6 +48,7 @@ from . import client, config, ical
|
|||
|
||||
|
||||
NAMESPACES = {
|
||||
"A": "http://apple.com/ns/ical/",
|
||||
"C": "urn:ietf:params:xml:ns:caldav",
|
||||
"CR": "urn:ietf:params:xml:ns:carddav",
|
||||
"D": "DAV:",
|
||||
|
@ -226,6 +227,7 @@ def propfind(path, xml_request, collections, user=None):
|
|||
_tag("D", "displayname"),
|
||||
_tag("D", "owner"),
|
||||
_tag("D", "getetag"),
|
||||
_tag("A", "calendar-color"),
|
||||
_tag("CS", "getctag")]
|
||||
|
||||
# Writing answer
|
||||
|
@ -340,6 +342,8 @@ def _propfind_response(path, item, props, user):
|
|||
item.tag, item.headers, item.timezones)
|
||||
elif tag == _tag("D", "displayname"):
|
||||
element.text = item.name
|
||||
elif tag == _tag("A", "calendar-color"):
|
||||
element.text = item.color
|
||||
else:
|
||||
human_tag = _tag_from_clark(tag)
|
||||
if human_tag in collection_props:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue