propfind/sharing: fix support for single item request
This commit is contained in:
@@ -226,7 +226,17 @@ def xml_propfind_response(
|
|||||||
is404 = False
|
is404 = False
|
||||||
if tag == xmlutils.make_clark("D:getetag"):
|
if tag == xmlutils.make_clark("D:getetag"):
|
||||||
if not is_collection or is_leaf:
|
if not is_collection or is_leaf:
|
||||||
element.text = item.etag
|
if isinstance(item, storage.BaseCollection):
|
||||||
|
element.text = item.etag
|
||||||
|
else:
|
||||||
|
if share_bday_automap:
|
||||||
|
item_converted = item.convert_vcf_to_ics()
|
||||||
|
if item_converted:
|
||||||
|
element.text = item_converted.etag
|
||||||
|
else:
|
||||||
|
is404 = True
|
||||||
|
else:
|
||||||
|
element.text = item.etag
|
||||||
else:
|
else:
|
||||||
is404 = True
|
is404 = True
|
||||||
elif tag == xmlutils.make_clark("D:getlastmodified"):
|
elif tag == xmlutils.make_clark("D:getlastmodified"):
|
||||||
|
|||||||
Reference in New Issue
Block a user