|
|
@@ -126,7 +126,7 @@ def name_from_path(path, calendar):
|
|
|
def props_from_request(root, actions=("set", "remove")):
|
|
|
"""Return a list of properties as a dictionary."""
|
|
|
result = OrderedDict()
|
|
|
- if not isinstance(root, ET.Element):
|
|
|
+ if not hasattr(root, "tag"):
|
|
|
root = ET.fromstring(root.encode("utf8"))
|
|
|
|
|
|
for action in actions:
|