[CMF-checkins] CVS: CMF/CMFCore - CMFCatalogAware.py:1.4
Florent Guillaume
fg@nuxeo.com
Sat, 29 Jun 2002 19:49:48 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv16574/CMFCore
Modified Files:
CMFCatalogAware.py
Log Message:
Correctly reindex the just-reset workflow variables of an object in a
DCWorkflow after a paste.
(I put the responsibility for this in CMFCatalogAware.manage_afterClone
and not in notifyCreated because the latter is called from other places
that already have do the reindexing for other reasons.)
Cleaned up DefaultWorkflow so that the notifySuccess & co methods are
not called twice, the WorkflowTool deals with that. Reindexing after a
workflow transition is also taken care of by WorkflowTool.
=== CMF/CMFCore/CMFCatalogAware.py 1.3 => 1.4 ===
if wf is not None:
wf.notifyCreated(self)
+ # After a clone, the workflow may have reset
+ # its variables so the object has to be reindexed.
+ self.reindexObject()
def manage_beforeDelete(self, item, container):
"""