typo propertive -> property
authorgwen <gremond@cadoles.com>
Fri, 24 Jan 2014 08:17:46 +0000 (09:17 +0100)
committergwen <gremond@cadoles.com>
Fri, 24 Jan 2014 08:17:46 +0000 (09:17 +0100)
tiramisu/setting.py
tiramisu/storage/dictionary/setting.py
tiramisu/storage/sqlite3/setting.py

index 99347f1..02da5ae 100644 (file)
@@ -352,7 +352,7 @@ class Settings(object):
             raise ValueError(_('opt and all_properties must not be set '
                                'together in reset'))
         if all_properties:
-            self._p_.reset_all_propertives()
+            self._p_.reset_all_properties()
         else:
             if opt is not None and _path is None:
                 _path = self._get_path_by_opt(opt)
index 1b7001b..899af4a 100644 (file)
@@ -31,7 +31,7 @@ class Settings(Cache):
         self._permissives = {}
         super(Settings, self).__init__(storage)
 
-    # propertives
+    # properties
     def setproperties(self, path, properties):
         self._properties[path] = properties
 
@@ -41,7 +41,7 @@ class Settings(Cache):
     def hasproperties(self, path):
         return path in self._properties
 
-    def reset_all_propertives(self):
+    def reset_all_properties(self):
         self._properties.clear()
 
     def reset_properties(self, path):
index ed79181..9a5d2f9 100644 (file)
@@ -33,7 +33,7 @@ class Settings(Sqlite3DB):
         self._storage.execute(settings_table, commit=False)
         self._storage.execute(permissives_table)
 
-    # propertives
+    # properties
     def setproperties(self, path, properties):
         path = self._sqlite_encode_path(path)
         self._storage.execute("DELETE FROM property WHERE path = ?", (path,),
@@ -56,7 +56,7 @@ class Settings(Sqlite3DB):
         return self._storage.select("SELECT properties FROM property WHERE "
                                     "path = ?", (path,)) is not None
 
-    def reset_all_propertives(self):
+    def reset_all_properties(self):
         self._storage.execute("DELETE FROM property")
 
     def reset_properties(self, path):