Fix principal-collection-set in PROPFIND response

This commit is contained in:
Christoph Polcin 2014-01-05 21:21:17 +01:00
parent 83db27303f
commit d09b16c5ad

View File

@ -284,8 +284,11 @@ def _propfind_response(path, item, props, user):
is404 = True is404 = True
tag = ET.Element(_tag("D", "unauthenticated")) tag = ET.Element(_tag("D", "unauthenticated"))
element.append(tag) element.append(tag)
elif tag in (_tag("D", "principal-collection-set"), elif tag == _tag("D", "principal-collection-set"):
_tag("C", "calendar-user-address-set"), tag = ET.Element(_tag("D", "href"))
tag.text = _href("/")
element.append(tag)
elif tag in (_tag("C", "calendar-user-address-set"),
_tag("CR", "addressbook-home-set"), _tag("CR", "addressbook-home-set"),
_tag("C", "calendar-home-set")): _tag("C", "calendar-home-set")):
tag = ET.Element(_tag("D", "href")) tag = ET.Element(_tag("D", "href"))