[Zope-CMF] DCWorkflow: how to get transition title?
Joost van Lawick
Joost van Lawick <joost@lawick.com>
Wed, 6 Mar 2002 09:21:57 +0100
Thanks Dieter, I will give it a try!
Joost
On Tue, Mar 05, 2002 at 10:48:23PM +0100, Dieter Maurer wrote:
> Joost van Lawick writes:
> > How do I get transition title (instead of id)? I want to see title
> > instead of ID in review history. Do I need to add a variable
> > and store title there or can I derive title from the known Id?
> You can try something like this (in a Python Script, proxied to "Manager"):
>
> tool= container.portal_workflow
> wf= getattr(tool,workflow)
> return getattr(wf.transitions,transsition).title
>
>
> Dieter
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests
>
--
Rocky's Lemma of Innovation Prevention
Unless the results are known in advance, funding agencies will
reject the proposal.
--
Joost van Lawick
E: joost@lawick.com
W: http://www.lawick.com/