[Erp5-report] r13877 - /erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 3 11:12:11 CEST 2007
Author: jerome
Date: Tue Apr 3 11:12:10 2007
New Revision: 13877
URL: http://svn.erp5.org?rev=13877&view=rev
Log:
replace a hasattr by getattr
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=13877&r1=13876&r2=13877&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py (original)
+++ erp5/trunk/products/ERP5Type/patches/CMFCatalogAware.py Tue Apr 3 11:12:10 2007
@@ -29,7 +29,7 @@
"""
if idxs == []:
# Update the modification date.
- if hasattr(aq_base(self), 'notifyModified'):
+ if getattr(aq_base(self), 'notifyModified', None) is not None:
self.notifyModified()
catalog = getToolByName(self, 'portal_catalog', None)
if catalog is not None:
More information about the Erp5-report
mailing list