mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Add support for supported-report-set PROPFIND tag
This commit is contained in:
parent
71819cdb39
commit
9b153d56cc
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue