Show the review state of an item in Plone

Leo van Geest leovabgeest at netscape.org
Mon May 31 12:08:26 EDT 2004


Tor Iver Wilhelmsen wrote:
> lf.van.geest at quicknet.nl (Leo) writes:
> 
> 
>>Error Type
>>    NameError
>>Error Value
>>    name 'getInfoFor' is not defined
> 
> 
> Using TAL you're in Zope land AFAIK, and getInfoFor() isn't a method I
> can find in that API. You need to prefix - or even import - the
> package, e.g. workflow_tool.getInfoFor(...).

Thank you for your answer. In fact, you pointed me to te right 
direction. The getInfoFor is a method defined by the portal_workflow 
module. A correct way to show the review state of an item in Plone is:

<h2
   tal:define="wtool here/portal_workflow;
       review_state python: wtool.getInfoFor(here, 'review_state')"
   tal:content=review_state>
</h2>



More information about the Python-list mailing list