[Erp5-report] r25337 - /erp5/trunk/products/ERP5Type/patches/DA.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 28 15:55:21 CET 2009


Author: jerome
Date: Wed Jan 28 15:55:19 2009
New Revision: 25337

URL: http://svn.erp5.org?rev=25337&view=rev
Log:
DA._cached_result changed in zope 2.9

Modified:
    erp5/trunk/products/ERP5Type/patches/DA.py

Modified: erp5/trunk/products/ERP5Type/patches/DA.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DA.py?rev=25337&r1=25336&r2=25337&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DA.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/DA.py [utf8] Wed Jan 28 15:55:19 2009
@@ -212,7 +212,11 @@
     if src__: return query
 
     if self.cache_time_ > 0 and self.max_cache_ > 0:
-        result=self._cached_result(DB__, (query, self.max_rows_))
+        try:
+            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:
       try:
 #         if 'portal_ids' in query:




More information about the Erp5-report mailing list