[Zope] FOR loops?

Chris Withers chrisw@nipltd.com
Fri, 30 Jun 2000 12:35:24 +0100


Hi Andy,

Zope, and python for that matter, have no for loops ;-)

Try this (untested, someone please correct errors ;-):

I'm assuming stringthing (eg "Root") and numberthing (eg 0) are
attributed of the objects in your sequence list.

<select>
<dtml-in sequence>
  <option value="<dtml-var stringthing>">
    <dtml-var "'&nbsp;' * numberthing">
    <dtml-var numberthing>
  </option>
</dtml-in>
</select>

cheers,

Chris