Update propfind.py
Don't return getcontentcount prop on leaf or principal collection.
This commit is contained in:
@@ -274,7 +274,7 @@ def xml_propfind_response(
|
|||||||
is404 = True
|
is404 = True
|
||||||
elif tag == xmlutils.make_clark("RADICALE:getcontentcount"):
|
elif tag == xmlutils.make_clark("RADICALE:getcontentcount"):
|
||||||
# Only for internal use by the web interface
|
# Only for internal use by the web interface
|
||||||
if not is_collection or is_leaf:
|
if is_collection and not collection.is_principal:
|
||||||
element.text = str(sum(1 for entry in item.get_all()))
|
element.text = str(sum(1 for entry in item.get_all()))
|
||||||
else:
|
else:
|
||||||
is404 = True
|
is404 = True
|
||||||
|
|||||||
Reference in New Issue
Block a user