From 17f5c85f2d78e8dd11fde92dc3684f0039a84b80 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Fri, 15 Apr 2011 21:33:53 +0200 Subject: [PATCH] Add support for supported-report-set in propfind requests (related to #252) --- radicale/xmlutils.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index 88c98d0b..ed73c170 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -162,6 +162,15 @@ def propfind(path, xml_request, calendar, depth): privilege = ET.Element(_tag("D", "privilege")) privilege.append(ET.Element(_tag("D", "all"))) 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) status = ET.Element(_tag("D", "status"))