[Zope-CMF] portal_workflow.getInfoFor

Tres Seaver tseaver@digicool.com
Mon, 30 Apr 2001 21:03:38 -0400


Jason Wehmhoener wrote:
 
> I would have thought that this code would display the title
> and the status of each item in a folder, but for some reason
> the status never gets printed.
> 
> Any idea what I'm doing wrong?
> 
> <dtml-in expr="contentValues(filter=decodeFolderFilter(
>          REQUEST.get('folderfilter', '')))"
>          sort="id" size="19" start=qs skip_unauthorized>
>   <dtml-let obj="_.getitem('sequence-item', 0 )"
>             objState="portal_workflow.getInfoFor(obj, 'objState', '')">
>     <dtml-var title><br>
>     Status: <dtml-var objState><br>
>   </dtml-let>
> </dtml-in>

Unless you have replaced the workflow object, the only meaningful
tokens you can pass to 'portal_workflow.getInfoFor' are
"review_state" (publically visible) and "review_history" (reviewer
or owner only).  Asking for 'objState' will get you an empty string,
in the default configuration.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org