[Erp5-report] r39201 jm - /erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Oct 14 20:45:39 CEST 2010


Author: jm
Date: Thu Oct 14 20:45:39 2010
New Revision: 39201

URL: http://svn.erp5.org?rev=39201&view=rev
Log:
_getCatalogTool does not exist in CMF 1.5

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

Modified: erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py?rev=39201&r1=39200&r2=39201&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py [utf8] Thu Oct 14 20:45:39 2010
@@ -30,7 +30,7 @@ def reindexObject(self, idxs=[], *args, 
         # Update the modification date.
         if getattr(aq_base(self), 'notifyModified', None) is not None:
             self.notifyModified()
-    catalog = self._getCatalogTool()
+    catalog = getattr(self.getPortalObject(), 'portal_catalog', None)
     if catalog is not None:
         catalog.reindexObject(self, idxs=idxs, *args, **kw)
 




More information about the Erp5-report mailing list