[Zope-CMF] DCWorkflow: how to get transition title?

Dieter Maurer dieter@handshake.de
Tue, 5 Mar 2002 22:48:23 +0100


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