better way to apply the previous fix
This commit is contained in:
parent
f4ef06a4e6
commit
3de979dd9b
2 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
|
||||||
from copy import deepcopy
|
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
|
|
@ -117,7 +116,7 @@ class BaseBackend(object):
|
||||||
value = float(value)
|
value = float(value)
|
||||||
self.config[name] = value
|
self.config[name] = value
|
||||||
self.storage = BackendStorage(self.name, storage)
|
self.storage = BackendStorage(self.name, storage)
|
||||||
self.storage.load(deepcopy(self.STORAGE))
|
self.storage.load(self.STORAGE)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def browser(self):
|
def browser(self):
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
from copy import deepcopy
|
||||||
from logging import error
|
from logging import error
|
||||||
|
|
||||||
class IStorage:
|
class IStorage:
|
||||||
|
|
@ -42,7 +43,7 @@ else:
|
||||||
|
|
||||||
def load(self, backend, default={}):
|
def load(self, backend, default={}):
|
||||||
d = self.config.values.get(backend, {})
|
d = self.config.values.get(backend, {})
|
||||||
self.config.values[backend] = default.copy()
|
self.config.values[backend] = deepcopy(default)
|
||||||
self.config.values[backend].update(d)
|
self.config.values[backend].update(d)
|
||||||
|
|
||||||
def save(self, backend):
|
def save(self, backend):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue