Add simple support for calendar-user-address-set (references #181)

This commit is contained in:
Guillaume Ayoub 2011-01-27 00:04:30 +01:00
parent 04938243a8
commit 9874129bbb

View File

@ -140,11 +140,10 @@ def propfind(path, xml_request, calendar, depth):
tag = ET.Element(_tag("D", "href"))
tag.text = path
element.append(tag)
elif tag == _tag("D", "principal-collection-set"):
tag = ET.Element(_tag("D", "href"))
tag.text = path
element.append(tag)
elif tag == _tag("C", "calendar-home-set"):
elif tag in (
_tag("D", "principal-collection-set"),
_tag("C", "calendar-user-address-set"),
_tag("C", "calendar-home-set")):
tag = ET.Element(_tag("D", "href"))
tag.text = path
element.append(tag)