[Erp5-report] r29681 - /erp5/trunk/products/ERP5Type/Cache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 15 16:30:34 CEST 2009


Author: kazuhiko
Date: Thu Oct 15 16:30:33 2009
New Revision: 29681

URL: http://svn.erp5.org?rev=29681&view=rev
Log:
'scope' should be removed from kwd otherwise will get the following exception whe we call caching method with a scope parameter:
  'TypeError: __call__() got multiple values for keyword argument 'scope'

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=29681&r1=29680&r2=29681&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Cache.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Cache.py [utf8] Thu Oct 15 16:30:33 2009
@@ -180,7 +180,7 @@
     """Call the method or return cached value using appropriate cache plugin """
 
     ## cache scope is based on user which is a kwd argument
-    scope = kwd.get('scope', DEFAULT_CACHE_SCOPE)
+    scope = kwd.pop('scope', DEFAULT_CACHE_SCOPE)
 
     ## generate unique cache id
     cache_id = self.generateCacheId(self.id, *args, **kwd)




More information about the Erp5-report mailing list