mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-07 07:07:36 +03:00
parent
01bcdec729
commit
99544fcf80
1 changed files with 5 additions and 2 deletions
|
@ -128,8 +128,11 @@ def name_from_path(path, collection):
|
||||||
def props_from_request(root, actions=("set", "remove")):
|
def props_from_request(root, actions=("set", "remove")):
|
||||||
"""Return a list of properties as a dictionary."""
|
"""Return a list of properties as a dictionary."""
|
||||||
result = OrderedDict()
|
result = OrderedDict()
|
||||||
if not hasattr(root, "tag"):
|
if root:
|
||||||
root = ET.fromstring(root.encode("utf8"))
|
if not hasattr(root, "tag"):
|
||||||
|
root = ET.fromstring(root.encode("utf8"))
|
||||||
|
else:
|
||||||
|
return result
|
||||||
|
|
||||||
for action in actions:
|
for action in actions:
|
||||||
action_element = root.find(_tag("D", action))
|
action_element = root.find(_tag("D", action))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue