1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-07-02 16:58:30 +00:00

Merge branch 'master' of github.com:Kozea/radicale

This commit is contained in:
Guillaume Ayoub 2016-09-16 14:12:36 +02:00
commit ecb8a99ed1
6 changed files with 30 additions and 11 deletions

View file

@ -254,10 +254,7 @@ class BaseCollection:
"""
if item.collection.path == to_collection.path and item.href == to_href:
return
if to_collection.has(to_href):
to_collection.update(to_href, item.item)
else:
to_collection.upload(to_href, item.item)
to_collection.upload(to_href, item.item)
item.collection.delete(item.href)
@property