Commit 2a192dd5 authored by Jérome Perrin's avatar Jérome Perrin

Critical bug fix: sometimes bound methods were cached instead of the result of the method.

This interfered with ZODB cache, and raises some "Shouldn't load state when the connection is closed" errors.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5536 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ee8521c
...@@ -92,7 +92,7 @@ class PreferenceTool(BaseTool): ...@@ -92,7 +92,7 @@ class PreferenceTool(BaseTool):
if value not in (None, '', (), []) : if value not in (None, '', (), []) :
return attr return attr
if found : if found :
return attr return value
_getPreference = CachingMethod( _getPreference, _getPreference = CachingMethod( _getPreference,
id='PreferenceTool.CachingMethod') id='PreferenceTool.CachingMethod')
user_name = getSecurityManager().getUser().getId() user_name = getSecurityManager().getUser().getId()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment