[Erp5-report] r18871 - /experimental/Experimental/patches/ERP5Form_safeRelationField.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Jan 26 10:43:38 CET 2008
Author: bartek
Date: Sat Jan 26 10:43:38 2008
New Revision: 18871
URL: http://svn.erp5.org?rev=18871&view=rev
Log:
use Form cache, not local
Modified:
experimental/Experimental/patches/ERP5Form_safeRelationField.py
Modified: experimental/Experimental/patches/ERP5Form_safeRelationField.py
URL: http://svn.erp5.org/experimental/Experimental/patches/ERP5Form_safeRelationField.py?rev=18871&r1=18870&r2=18871&view=diff
==============================================================================
--- experimental/Experimental/patches/ERP5Form_safeRelationField.py (original)
+++ experimental/Experimental/patches/ERP5Form_safeRelationField.py Sat Jan 26 10:43:38 2008
@@ -41,7 +41,6 @@
NOT_AVAILABLE_MARKER = '- (N/A) -'
-_field_value_cache = {}
def Form_get_value(self, id, **kw):
REQUEST = get_request()
if REQUEST is not None:
@@ -63,13 +62,13 @@
id)
try:
- value = _field_value_cache[cache_id]
+ value = Form._field_value_cache[cache_id]
except KeyError:
# either returns non callable value (ex. "Title")
# or a FieldValue instance of appropriate class
value, cacheable = Form.getFieldValue(self, field, id, **kw)
if cacheable:
- _field_value_cache[cache_id] = value
+ Form._field_value_cache[cache_id] = value
if callable(value):
# here we handle Unauthorized
More information about the Erp5-report
mailing list