mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Fix calendar/addressbook-home-set in PROPFIND response
This commit is contained in:
parent
d09b16c5ad
commit
387e1fee76
1 changed files with 9 additions and 3 deletions
|
@ -288,9 +288,15 @@ def _propfind_response(path, item, props, user):
|
||||||
tag = ET.Element(_tag("D", "href"))
|
tag = ET.Element(_tag("D", "href"))
|
||||||
tag.text = _href("/")
|
tag.text = _href("/")
|
||||||
element.append(tag)
|
element.append(tag)
|
||||||
elif tag in (_tag("C", "calendar-user-address-set"),
|
elif tag in (_tag("C", "calendar-home-set"),
|
||||||
_tag("CR", "addressbook-home-set"),
|
_tag("CR", "addressbook-home-set")):
|
||||||
_tag("C", "calendar-home-set")):
|
if user and path == "/%s/" % user:
|
||||||
|
tag = ET.Element(_tag("D", "href"))
|
||||||
|
tag.text = _href(path)
|
||||||
|
element.append(tag)
|
||||||
|
else:
|
||||||
|
is404 = True
|
||||||
|
elif tag == _tag("C", "calendar-user-address-set"):
|
||||||
tag = ET.Element(_tag("D", "href"))
|
tag = ET.Element(_tag("D", "href"))
|
||||||
tag.text = _href(path)
|
tag.text = _href(path)
|
||||||
element.append(tag)
|
element.append(tag)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue