Commit 43f31560 authored by Jérome Perrin's avatar Jérome Perrin

DA._cached_result changed in zope 2.9


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25337 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7266fc9a
...@@ -212,7 +212,11 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw): ...@@ -212,7 +212,11 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
if src__: return query if src__: return query
if self.cache_time_ > 0 and self.max_cache_ > 0: if self.cache_time_ > 0 and self.max_cache_ > 0:
try:
result=self._cached_result(DB__, (query, self.max_rows_)) result=self._cached_result(DB__, (query, self.max_rows_))
except TypeError:
# Zope > 2.9
result=self._cached_result(DB__, query, self.max_rows_, c)
else: else:
try: try:
# if 'portal_ids' in query: # if 'portal_ids' in query:
......
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