Merge pull request #521 from stephane-martin/fix-support-report-set-xml-element

<report> should contain XML elements, not text
This commit is contained in:
Guillaume Ayoub 2017-02-26 14:37:38 +01:00 committed by GitHub
commit 78db0072bc

View File

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