tiramisu/setting.py : properties store in cache was a reference to a list modified in validation, should copy properties in cache

This commit is contained in:
2014-02-20 14:27:29 +01:00
committed by Daniel Dehennin
parent fc7f3c24a5
commit d5b83c123c
2 changed files with 12 additions and 1 deletions

View File

@ -392,7 +392,7 @@ class Settings(object):
if ntime is None:
ntime = int(time())
ntime = ntime + expires_time
self._p_.setcache(path, props, ntime)
self._p_.setcache(path, copy(props), ntime)
return props
def append(self, propname):