Add support for supported-report-set PROPFIND tag
This commit is contained in:
parent
71819cdb39
commit
9b153d56cc
@ -121,6 +121,12 @@ def propfind(path, xml_request, calendar, request):
|
|||||||
element.text = calendar.etag
|
element.text = calendar.etag
|
||||||
elif tag == _tag("D", "displayname"):
|
elif tag == _tag("D", "displayname"):
|
||||||
element.text = calendar.name
|
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"):
|
elif tag == _tag("D", "principal-URL"):
|
||||||
# TODO: use a real principal URL, read rfc3744-4.2 for info
|
# TODO: use a real principal URL, read rfc3744-4.2 for info
|
||||||
element.text = "%s://%s%s" % (
|
element.text = "%s://%s%s" % (
|
||||||
|
Loading…
Reference in New Issue
Block a user