From ea63f461a8833a4a213de5993ca40af060e62872 Mon Sep 17 00:00:00 2001 From: Unrud Date: Thu, 25 Aug 2016 06:02:16 +0200 Subject: [PATCH] Rename upload_all to upload_all_nonatomic --- radicale/storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index fc81507..1c76e28 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -560,13 +560,13 @@ class Collection(BaseCollection): new_collection.add(item) href = self._find_available_file_name(vobject_items.get) vobject_items[href] = new_collection - self.upload_all(vobject_items) + self.upload_all_nonatomic(vobject_items) elif props.get("tag") == "VCARD": vobject_items = {} for card in collection: href = self._find_available_file_name(vobject_items.get) vobject_items[href] = card - self.upload_all(vobject_items) + self.upload_all_nonatomic(vobject_items) # This operation is not atomic on the filesystem level but it's # very unlikely that one rename operations succeeds while the @@ -578,7 +578,7 @@ class Collection(BaseCollection): return cls(sane_path, principal=principal) - def upload_all(self, vobject_items): + def upload_all_nonatomic(self, vobject_items): """Upload a new set of items. This takes a mapping of href and vobject items and