[Zope-CMF] CMF Document afterCreate for workflow
Tres Seaver
tseaver@palladion.com
Thu, 02 Aug 2001 21:15:22 -0400
Florent Guillaume wrote:
> Hi,
>
> In CMFDefault/Document.py, in addDocument, afterCreate is not
> called whereas it's called for all other standard document
> types (Link, Image, File, Favorite, NewsItem).
>
> Is this an oversight ? How does the workflow get called ?
Sorry to have missed replying earlier.
'afterCreate' is indeed called on the other content types; the
interesting bit (in 'CMFCore.WorkflowCore') is that it is a NOOP;
the behavior formerly implemented in 'Workflowcore.afterCreate' has
been moved to 'CMFCore.PortalContent.manage_afterAdd'.
We should probably remove it from Image, Link, NewsItem, et aliae.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com