[CMF-checkins] CVS: Products/CMFCore - CMFCatalogAware.py:1.21.2.1
Yvo Schubbe
y.2004_ at wcm-solutions.de
Mon Aug 30 04:47:00 EDT 2004
Update of /cvs-repository/Products/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv17113/CMFCore
Modified Files:
Tag: CMF-1_5-branch
CMFCatalogAware.py
Log Message:
- removed useless lines
(if that causes any trouble, we know at least what they were good for ;)
=== Products/CMFCore/CMFCatalogAware.py 1.21 => 1.21.2.1 ===
--- Products/CMFCore/CMFCatalogAware.py:1.21 Thu Aug 12 11:07:39 2004
+++ Products/CMFCore/CMFCatalogAware.py Mon Aug 30 04:46:59 2004
@@ -164,9 +164,8 @@
Add self to the catalog.
(Called when the object is created or moved.)
"""
- if aq_base(container) is not aq_base(self):
- self.indexObject()
- self.__recurse('manage_afterAdd', item, container)
+ self.indexObject()
+ self.__recurse('manage_afterAdd', item, container)
def manage_afterClone(self, item):
"""
@@ -181,9 +180,8 @@
Remove self from the catalog.
(Called when the object is deleted or moved.)
"""
- if aq_base(container) is not aq_base(self):
- self.__recurse('manage_beforeDelete', item, container)
- self.unindexObject()
+ self.__recurse('manage_beforeDelete', item, container)
+ self.unindexObject()
def __recurse(self, name, *args):
"""
More information about the CMF-checkins
mailing list