Commit 6fcea0da authored by Jérome Perrin's avatar Jérome Perrin

fix __call__ signature ( scope was missing )


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 749329d6
......@@ -37,7 +37,8 @@ class DummyCache(BaseCache):
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 @@ class DummyCache(BaseCache):
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):
......
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