mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Add support for supported-report-set in propfind requests (related to #252)
This commit is contained in:
parent
5673444ba7
commit
17f5c85f2d
1 changed files with 9 additions and 0 deletions
|
@ -162,6 +162,15 @@ def propfind(path, xml_request, calendar, depth):
|
||||||
privilege = ET.Element(_tag("D", "privilege"))
|
privilege = ET.Element(_tag("D", "privilege"))
|
||||||
privilege.append(ET.Element(_tag("D", "all")))
|
privilege.append(ET.Element(_tag("D", "all")))
|
||||||
element.append(privilege)
|
element.append(privilege)
|
||||||
|
elif tag == _tag("D", "supported-report-set"):
|
||||||
|
for report_name in (
|
||||||
|
"principal-property-search", "principal-search-property-set",
|
||||||
|
"expand-property", "sync-collection"):
|
||||||
|
supported = ET.Element(_tag("D", "supported-report"))
|
||||||
|
report = ET.Element(_tag("D", "report"))
|
||||||
|
report.text = report_name
|
||||||
|
supported.append(report)
|
||||||
|
element.append(supported)
|
||||||
prop.append(element)
|
prop.append(element)
|
||||||
|
|
||||||
status = ET.Element(_tag("D", "status"))
|
status = ET.Element(_tag("D", "status"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue