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:
commit
78db0072bc
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user