[Zope] DTML Question on lines

Rik Hoekstra rik.hoekstra@inghist.nl
Thu, 7 Sep 2000 21:54:29 +0200



> I am trying to itterate through a lines property in the folder so that the
> options will drop down. I did not think that the following code would work
> but I could not think of anything else.
>
>           <dtml-in valid_codes>
>              <option value="<dtml-var valid_codes>"><dtml-var
> valid_codes>&nbsp;</option>
>           </dtml-in>
>

try (untested):

<dtml-in valid_codes>
   <option value="<dtml-var sequence-item>"><dtml-var id>&nbsp;</option>
</dtml-in>

assuming of course that valid_codes is a list

hth

Rik