mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Remove at_once
This commit is contained in:
parent
a3c32ee77f
commit
69ec2891fa
2 changed files with 5 additions and 12 deletions
|
@ -438,7 +438,11 @@ def _propfind_response(path, item, props, user, write=False):
|
|||
element.append(supported)
|
||||
elif is_collection:
|
||||
if tag == _tag("D", "getcontenttype"):
|
||||
element.text = storage.MIMETYPES[item.get_meta("tag")]
|
||||
item_tag = item.get_meta("tag")
|
||||
if item_tag:
|
||||
element.text = storage.MIMETYPES[item_tag]
|
||||
else:
|
||||
is404 = True
|
||||
elif tag == _tag("D", "resourcetype"):
|
||||
if item.is_principal:
|
||||
tag = ET.Element(_tag("D", "principal"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue