[Erp5-report] r11077 - /erp5/trunk/products/ERP5Type/Cache.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Nov 2 18:24:08 CET 2006
Author: seb
Date: Thu Nov 2 18:24:06 2006
New Revision: 11077
URL: http://svn.erp5.org?rev=11077&view=rev
Log:
Cache was almost not working because the global variable was not used
Modified:
erp5/trunk/products/ERP5Type/Cache.py
Modified: erp5/trunk/products/ERP5Type/Cache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Cache.py?rev=11077&r1=11076&r2=11077&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Cache.py (original)
+++ erp5/trunk/products/ERP5Type/Cache.py Thu Nov 2 18:24:06 2006
@@ -180,7 +180,9 @@
try:
## try to get value from cache in a try block
## which is faster than checking for keys
- value = self.factories[self.cache_factory](self.callable_object,
+ # It is very important to take the factories dictionnary
+ # on CachingMethod instead of self, we want a global variable
+ value = CachingMethod.factories[self.cache_factory](self.callable_object,
cache_id,
scope,
self.cache_duration,
More information about the Erp5-report
mailing list