[Erp5-report] r11479 - /erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Nov 25 11:25:52 CET 2006


Author: jerome
Date: Sat Nov 25 11:25:48 2006
New Revision: 11479

URL: http://svn.erp5.org?rev=11479&view=rev
Log:
fix __call__ signature ( scope was missing )

Modified:
    erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py

Modified: erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py?rev=11479&r1=11478&r2=11479&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py (original)
+++ erp5/trunk/products/ERP5Type/CachePlugins/DummyCache.py Sat Nov 25 11:25:48 2006
@@ -37,7 +37,8 @@
   def __init__(self, params):
     BaseCache.__init__(self)
  
-  def __call__(self, callable_object, cache_id, cache_duration=None, *args, **kwd):
+  def __call__(self, callable_object, cache_id, scope, cache_duration=None,
+              *args, **kwd):
     ## Just calculate and return result - no caching 
     return callable_object(*args, **kwd)
         
@@ -47,10 +48,11 @@
   def get(self, cache_id, scope, default=None):
     pass
        
-  def set(self, cache_id, scope, value, cache_duration= None, calculation_time=0):
+  def set(self, cache_id, scope, value,
+          cache_duration=None, calculation_time=0):
     pass
 
-  def expireOldCacheEntries(self, forceCheck = False):
+  def expireOldCacheEntries(self, forceCheck=False):
     pass
         
   def delete(self, cache_id, scope):




More information about the Erp5-report mailing list