mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-29 16:55:32 +00:00
Remove duplicate code
This commit is contained in:
parent
6bfdcbafec
commit
8f91190949
1 changed files with 1 additions and 4 deletions
|
@ -590,14 +590,11 @@ def _propfind_response(path, item, props, user, write=False):
|
||||||
is404 = False
|
is404 = False
|
||||||
if tag == _tag("D", "getetag"):
|
if tag == _tag("D", "getetag"):
|
||||||
element.text = item.etag
|
element.text = item.etag
|
||||||
elif tag == _tag("D", "principal-URL"):
|
|
||||||
tag = ET.Element(_tag("D", "href"))
|
|
||||||
tag.text = _href(collection, path)
|
|
||||||
element.append(tag)
|
|
||||||
elif tag == _tag("D", "getlastmodified"):
|
elif tag == _tag("D", "getlastmodified"):
|
||||||
element.text = item.last_modified
|
element.text = item.last_modified
|
||||||
elif tag in (_tag("D", "principal-collection-set"),
|
elif tag in (_tag("D", "principal-collection-set"),
|
||||||
_tag("C", "calendar-user-address-set"),
|
_tag("C", "calendar-user-address-set"),
|
||||||
|
_tag("D", "principal-URL"),
|
||||||
_tag("CR", "addressbook-home-set"),
|
_tag("CR", "addressbook-home-set"),
|
||||||
_tag("C", "calendar-home-set")):
|
_tag("C", "calendar-home-set")):
|
||||||
tag = ET.Element(_tag("D", "href"))
|
tag = ET.Element(_tag("D", "href"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue