[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.3
Tres Seaver
tseaver@zope.com
Tue, 2 Apr 2002 16:38:50 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv9352/CMFCore
Modified Files:
CMFCatalogAware.py
Log Message:
- *Don't* reinitialize workflow in 'manage_afterAdd': it is the wrong
thing when doing 'cut-and-paste' (Tracker #342), and duplicates the
effort to handle it properly inside 'invokeFactory' (Tracker #482).
=== CMF/CMFCore/CMFCatalogAware.py 1.2 => 1.3 ===
#
if aq_base(container) is not aq_base(self):
+ self.indexObject()
+
+ def manage_afterClone(self, item):
+ """
+ Add self to workflow, as we have just been cloned.
+ """
+ if aq_base(item) is aq_base(self):
wf = getToolByName(self, 'portal_workflow', None)
if wf is not None:
wf.notifyCreated(self)
- self.indexObject()
def manage_beforeDelete(self, item, container):
"""