Commit 89a64342 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

'scope' should be removed from kwd otherwise will get the following exception...

'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'


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29681 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 99d3f640
......@@ -180,7 +180,7 @@ class CachingMethod:
"""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)
......
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