mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
elementtree in Python 2.x would rather receive encoded strings.
This commit is contained in:
parent
ca9c148705
commit
b230601ee2
1 changed files with 3 additions and 3 deletions
|
@ -119,7 +119,7 @@ def propfind(path, xml_request, calendar, depth):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Reading request
|
# Reading request
|
||||||
root = ET.fromstring(xml_request)
|
root = ET.fromstring(xml_request.encode("utf8"))
|
||||||
|
|
||||||
prop_element = root.find(_tag("D", "prop"))
|
prop_element = root.find(_tag("D", "prop"))
|
||||||
props = [prop.tag for prop in prop_element]
|
props = [prop.tag for prop in prop_element]
|
||||||
|
@ -220,7 +220,7 @@ def proppatch(path, xml_request, calendar):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Reading request
|
# Reading request
|
||||||
root = ET.fromstring(xml_request)
|
root = ET.fromstring(xml_request.encode("utf8"))
|
||||||
props = []
|
props = []
|
||||||
|
|
||||||
for action in ("set", "remove"):
|
for action in ("set", "remove"):
|
||||||
|
@ -274,7 +274,7 @@ def report(path, xml_request, calendar):
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# Reading request
|
# Reading request
|
||||||
root = ET.fromstring(xml_request)
|
root = ET.fromstring(xml_request.encode("utf8"))
|
||||||
|
|
||||||
prop_element = root.find(_tag("D", "prop"))
|
prop_element = root.find(_tag("D", "prop"))
|
||||||
props = [prop.tag for prop in prop_element]
|
props = [prop.tag for prop in prop_element]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue