From 9b153d56cc98d844388ebafa107269e4962bf255 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 14 Sep 2010 05:06:46 +0200 Subject: [PATCH] Add support for supported-report-set PROPFIND tag --- radicale/xmlutils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radicale/xmlutils.py b/radicale/xmlutils.py index eeeef5d..cb882e6 100644 --- a/radicale/xmlutils.py +++ b/radicale/xmlutils.py @@ -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" % (