Merge branch 'master' into orm
This commit is contained in:
commit
cbfb5a45b0
@ -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)
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user