<report> should contain XML elements, not text

This commit is contained in:
Stephane Martin 2016-09-20 00:27:03 +02:00
parent 0c1dbc30bd
commit 5abc8aea43

View File

@ -617,7 +617,8 @@ def _propfind_response(path, item, props, user, write=False):
"expand-property", "principal-search-property-set"):
supported = ET.Element(_tag("D", "supported-report"))
report_tag = ET.Element(_tag("D", "report"))
report_tag.text = report_name
supported_report_tag = ET.Element(_tag("D", report_name))
report_tag.append(supported_report_tag)
supported.append(report_tag)
element.append(supported)
elif is_collection: