[Zope] Equivalent Statement

Paul Winkler pw_lists at slinkp.com
Sun Jan 4 02:17:18 EST 2004


On Sat, Jan 03, 2004 at 03:47:01PM -0500, kittonian wrote:
> I can't seem to figure out what the equivalent code would be to use in a
> ZPT.  Can someone provide me the answer?
>  
> I have the following statement working in my dtml-documents:
>  
> <dtml-in expr="methods.dropdown( listname='state' )" >
> <option value="<dtml-var item_value>"><dtml-var item_name></option>
> </dtml-in>

untested...

<option tal:repeat="result python:methods.dropdown(listname='state')"
    tal:attributes="value result/item_value"   
    tal:content="result/item_name">
</option>

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's THE ACTIVE FINALE!
(random hero from isometric.spaceninja.com)



More information about the Zope mailing list