1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Use is_leaf and is_node instead of is_item and is_collection

This commit is contained in:
Guillaume Ayoub 2012-02-23 15:17:59 +01:00
parent 5e8dec6683
commit 128a20714b
3 changed files with 26 additions and 15 deletions

View file

@ -279,7 +279,7 @@ def _propfind_response(path, item, props, user):
if item.is_principal:
tag = ET.Element(_tag("D", "principal"))
element.append(tag)
if item.is_item(item.path):
if item.is_leaf(item.path):
tag = ET.Element(_tag("C", item.resource_type))
element.append(tag)
tag = ET.Element(_tag("D", "collection"))