Add support for supported-report-set PROPFIND tag

This commit is contained in:
Guillaume Ayoub 2010-09-14 05:06:46 +02:00
parent 71819cdb39
commit 9b153d56cc

View File

@ -121,6 +121,12 @@ def propfind(path, xml_request, calendar, request):
element.text = calendar.etag
elif tag == _tag("D", "displayname"):
element.text = calendar.name
elif tag == _tag("D", "supported-report-set"):
supported_report = ET.Element(_tag("D", "supported-report"))
report = ET.Element(_tag("D", "report"))
report.append(ET.Element(_tag("C", "calendar-multiget")))
supported_report.append(report)
element.append(supported_report)
elif tag == _tag("D", "principal-URL"):
# TODO: use a real principal URL, read rfc3744-4.2 for info
element.text = "%s://%s%s" % (