Преглед изворни кода

Rename upload_all to upload_all_nonatomic

Unrud пре 9 година
родитељ
комит
ea63f461a8
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      radicale/storage.py

+ 3 - 3
radicale/storage.py

@@ -560,13 +560,13 @@ class Collection(BaseCollection):
                             new_collection.add(item)
                             new_collection.add(item)
                         href = self._find_available_file_name(vobject_items.get)
                         href = self._find_available_file_name(vobject_items.get)
                         vobject_items[href] = new_collection
                         vobject_items[href] = new_collection
-                    self.upload_all(vobject_items)
+                    self.upload_all_nonatomic(vobject_items)
                 elif props.get("tag") == "VCARD":
                 elif props.get("tag") == "VCARD":
                     vobject_items = {}
                     vobject_items = {}
                     for card in collection:
                     for card in collection:
                         href = self._find_available_file_name(vobject_items.get)
                         href = self._find_available_file_name(vobject_items.get)
                         vobject_items[href] = card
                         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
             # This operation is not atomic on the filesystem level but it's
             # very unlikely that one rename operations succeeds while the
             # very unlikely that one rename operations succeeds while the
@@ -578,7 +578,7 @@ class Collection(BaseCollection):
 
 
         return cls(sane_path, principal=principal)
         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.
         """Upload a new set of items.
 
 
         This takes a mapping of href and vobject items and
         This takes a mapping of href and vobject items and