mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
Remove BaseCollection.update
I don't think that this can be used for optimizations. It's useless in the filesystem backend, SQL has REPLACE and I doubt that there is much use in any other storage mechanism.
This commit is contained in:
parent
79bfa9c1d3
commit
c5342d36d5
2 changed files with 2 additions and 28 deletions
|
@ -600,10 +600,7 @@ class Application:
|
|||
if tag:
|
||||
parent_item.set_meta({"tag": tag})
|
||||
href = posixpath.basename(path.strip("/"))
|
||||
if item:
|
||||
new_item = parent_item.update(href, items[0])
|
||||
else:
|
||||
new_item = parent_item.upload(href, items[0])
|
||||
new_item = parent_item.upload(href, items[0])
|
||||
headers = {"ETag": new_item.etag}
|
||||
return client.CREATED, headers, None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue