Commit 1259e84d authored by Ivan Tyagov's avatar Ivan Tyagov

Revert changes for generation of cache_id when no arguments are passed (static...

Revert changes for generation of cache_id when no arguments are passed (static defined in CachingMethod)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11139 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fbf0468
...@@ -193,11 +193,6 @@ class CachingMethod: ...@@ -193,11 +193,6 @@ class CachingMethod:
def generateCacheId(self, method_id, *args, **kwd): def generateCacheId(self, method_id, *args, **kwd):
""" Generate proper cache id based on *args and **kwd """ """ Generate proper cache id based on *args and **kwd """
if args==() and kwd == {}:
## we have static method_id without any argument passed
## so we return it as it is.
return str(method_id)
else:
## generate cache id out of arguments passed. ## generate cache id out of arguments passed.
## depending on arguments we may have different ## depending on arguments we may have different
## cache_id for same method_id ## cache_id for same method_id
......
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