Adding the calendar-home-set property management

This commit is contained in:
Guillaume Ayoub 2010-12-29 19:10:56 +01:00
parent 9d508efcd4
commit dcabf4249e

View File

@ -151,6 +151,12 @@ def propfind(path, xml_request, calendar, depth, request):
element.text = "%s://%s%s" % (
request.server.PROTOCOL, request.headers["Host"],
request.path)
elif tag == _tag("C", "calendar-home-set"):
tag = ET.Element(_tag("D", "href"))
tag.text = "%s://%s%s" % (
request.server.PROTOCOL, request.headers["Host"],
request.path)
element.append(tag)
prop.append(element)