[Zope-CMF] Re: [dev] two small changes

yuppie y.2004_ at wcm-solutions.de
Wed Feb 4 09:00:13 EST 2004


Hi!


Encolpe DEGOUTE wrote:
> Dans local.lists.zope.zope-cmf yuppie écrivit:
> |    view_action = context.getActionInfo('object/view')
> 
> 
> Is the usecase workflow_transition.getAtcion('object/view') to 
> implemented?

WorkflowTool (CMF HEAD) implements OldstyleActionProviderBase. So you 
can use something like

   wftool = getToolByName(context, 'portal_workflow')
   publish_action = wftool.getActionInfo('workflow/publish', context)

DCWorkflow's TransitionDefinition has no getAction or getActionInfo method.

As discussed here <http://zope.org/Collectors/CMF/207> the workflow 
action implementation is old fashioned.


Hope this answers your question,
	Yuppie





More information about the Zope-CMF mailing list