[Zope] FOR loops?

Phill Hugo phill@gnu.org
Fri, 30 Jun 2000 11:33:47 +0000


Andy Gates wrote:
>
> <select>
> <dtml-in sequence>
>   <option value="whatever">
>     <for loop=0 to entry-indent-value>
>       &nbsp;
>     </for>
>     <entry-string-value>
>   </dtml-in>
> </select>
> 
> So where does Zope hide its FOR loop?  Can't find the bugger anywhere!

You already did. <dtml-in> is FOR. As in Python's "for v in list". Use
<dtml-in "_.range(0, _['entry-indent-value']"> </dtml-in>

Phill