[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.1.2.2

Shane Hathaway shane@cvs.zope.org
Mon, 25 Feb 2002 11:03:41 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv29525/CMFCore

Modified Files:
      Tag: cmf-pre-1_3-branch
	CMFCatalogAware.py 
Log Message:
Fixed a recursion bug.


=== CMF/CMFCore/CMFCatalogAware.py 1.1.2.1 => 1.1.2.2 ===
             #
             for item_id, subitem in self.objectItems():
-                m = getattr(subitem, 'manage_beforeDelete', None)
-                if m is not None:
-                    m(item, container)
+                # Carefully avoid implicit acquisition of the
+                # name "manage_beforeDelete"
+                if hasattr(aq_base(subitem), 'manage_beforeDelete'):
+                    subitem.manage_beforeDelete(item, container)
 
 
 Globals.InitializeClass(CMFCatalogAware)