From 48d2a33053477e8ae91cea9b3abc3b14b6875b40 Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 9 Jun 2017 02:30:02 +0200 Subject: [PATCH] Rename upload_all_atomic to _upload_all_atomic --- radicale/storage.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radicale/storage.py b/radicale/storage.py index cf50bc9e..e3b6f1df 100644 --- a/radicale/storage.py +++ b/radicale/storage.py @@ -726,7 +726,7 @@ class Collection(BaseCollection): href = self._find_available_file_name( vobject_items.get, suffix=".ics") vobject_items[href] = new_collection - self.upload_all_nonatomic(vobject_items) + self._upload_all_nonatomic(vobject_items) elif props.get("tag") == "VCARD": vobject_items = {} for card in collection: @@ -735,7 +735,7 @@ class Collection(BaseCollection): href = self._find_available_file_name( vobject_items.get, suffix=".vcf") vobject_items[href] = card - self.upload_all_nonatomic(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 @@ -748,6 +748,10 @@ class Collection(BaseCollection): return cls(sane_path, principal=principal) def upload_all_nonatomic(self, vobject_items): + """DEPRECATED: Use ``_upload_all_nonatomic``""" + return self._upload_all_nonatomic(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