1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00
This commit is contained in:
Guillaume Ayoub 2013-02-27 10:36:54 +01:00
parent 56b033bba3
commit b6b48b5af7

View file

@ -197,9 +197,7 @@ def propfind(path, xml_request, collections, user=None):
# Reading request
if xml_request:
root = ET.fromstring(xml_request.encode("utf8"))
prop_element = root.find(_tag("D", "prop"))
props = [prop.tag for prop in prop_element]
props = [prop.tag for prop in root.find(_tag("D", "prop"))]
else:
props = [_tag("D", "getcontenttype"),
_tag("D", "resourcetype"),