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:
parent
5e8dec6683
commit
128a20714b
3 changed files with 26 additions and 15 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue