mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-10 18:40:53 +00:00
Fix uploading of whole address books
This commit is contained in:
parent
69086c6d70
commit
c135dc026d
2 changed files with 7 additions and 7 deletions
|
@ -708,10 +708,6 @@ class Collection(BaseCollection):
|
|||
sane_path = sanitize_path(href).strip("/")
|
||||
filesystem_path = path_to_filesystem(folder, sane_path)
|
||||
|
||||
if not props:
|
||||
props = {}
|
||||
if not props.get("tag") and collection:
|
||||
props["tag"] = collection[0].name
|
||||
if not props:
|
||||
cls._makedirs_synced(filesystem_path)
|
||||
return cls(sane_path)
|
||||
|
@ -747,7 +743,7 @@ class Collection(BaseCollection):
|
|||
vobject_items.get, suffix=".ics")
|
||||
vobject_items[href] = new_collection
|
||||
self._upload_all_nonatomic(vobject_items)
|
||||
elif props.get("tag") == "VCARD":
|
||||
elif props.get("tag") == "VADDRESSBOOK":
|
||||
vobject_items = {}
|
||||
for card in collection:
|
||||
# href must comply to is_safe_filesystem_path_component
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue