Commit 2e19774f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

caching_class_method_decorator's return value method should accept arguments and keyword arguments.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29747 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0d4a11ca
...@@ -280,4 +280,4 @@ def generateCacheIdWithoutFirstArg(method_id, *args, **kwd): ...@@ -280,4 +280,4 @@ def generateCacheIdWithoutFirstArg(method_id, *args, **kwd):
def caching_class_method_decorator(*args, **kw): def caching_class_method_decorator(*args, **kw):
kw.setdefault('cache_id_func', generateCacheIdWithoutFirstArg) kw.setdefault('cache_id_func', generateCacheIdWithoutFirstArg)
return lambda method: CachingMethod(method, *args, **kw) return lambda m: lambda *a, **k: CachingMethod(m, *args, **kw)(*a, **k)
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