Re: [Zope-CMF] Zope 3 events from workflow

2007-01-03 Thread Martin Aspeli
Chris Withers wrote: > > Martin Aspeli wrote: >> To subscribe only to particular transitions, you would need for each >> transition object to provide a specific interface. > > Unless you could leverage the same kind of thing that makes named > adapters work... > Like the code I proposed? Y

Re: [Zope-CMF] Zope 3 events from workflow

2007-01-03 Thread Chris Withers
Martin Aspeli wrote: To subscribe only to particular transitions, you would need for each transition object to provide a specific interface. Unless you could leverage the same kind of thing that makes named adapters work... zope.event?), it registers a general subscriber for IObjectEvent a

Re: [Zope-CMF] Zope 3 events from workflow

2007-01-02 Thread Martin Aspeli
Chris Withers wrote: > > Hi All, > > Martin Aspeli wrote: >> class IWorkflowEvent(IObjectEvent): >> """A workflow related event >> """ >> >> wf_name = TextLine(title=u"The name of the workflow this event is >> part of") >> >> transition = TextLine(title=u"The name of the tra

Re: [Zope-CMF] Zope 3 events from workflow

2007-01-02 Thread Chris Withers
Hi All, Martin Aspeli wrote: class IWorkflowEvent(IObjectEvent): """A workflow related event """ wf_name = TextLine(title=u"The name of the workflow this event is part of") transition = TextLine(title=u"The name of the transition taking place") state_before = TextLine(ti

Re: [Zope-CMF] Zope 3 events from workflow

2006-12-27 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am I right in thinking that DCWorkflow does not send any Zope 3 events? I'm not terribly familiar with that code, but some grepping suggests so. Do you agree this would be useful? (I've got a pretty strong need for it for Plone 3, i.e. CMF 2.

[Zope-CMF] Zope 3 events from workflow

2006-12-26 Thread Martin Aspeli
Hi guys, Am I right in thinking that DCWorkflow does not send any Zope 3 events? I'm not terribly familiar with that code, but some grepping suggests so. Do you agree this would be useful? (I've got a pretty strong need for it for Plone 3, i.e. CMF 2.1 - I'm sure we can work around it in Plo