[Zope-CMF] DiscussionItem patch

Stefan H. Holek stefan at epy.co.at
Thu Sep 2 13:35:26 EDT 2004


We'd like to see the following fix in CMF. Use case is to be notified 
when someone adds a comment to an object. Because DiscussionItems are 
not created by invokeFactory, the workflow is currently not notified.

Stefan


Begin forwarded message:

> From: Helge Tesdal <tesdal at localhost.localdomain>
> Date: August 30, 2004 18:14:32 GMT+02:00
> To: staff at plonesolutions.com
> Subject: DiscussionItem patch
>
> Index: DiscussionItem.py
> ===================================================================
> RCS file: /cvs-repository/Products/CMFDefault/DiscussionItem.py,v
> retrieving revision 1.33.4.3
> diff -u -r1.33.4.3 DiscussionItem.py
> --- DiscussionItem.py	7 Aug 2004 12:59:42 -0000	1.33.4.3
> +++ DiscussionItem.py	30 Aug 2004 16:12:19 -0000
> @@ -309,6 +309,8 @@
>
>          item.setReplyTo( self._getDiscussable() )
>
> +        item.__of__(self).notifyWorkflowCreated()
> +
>          self._container[ id ] = item
>
>          return id
>
--
The time has come to start talking about whether the emperor is as well
dressed as we are supposed to think he is.               /Pete McBreen/



More information about the Zope-CMF mailing list