[Zope] Re: dtml-if and _.['sequence-item']

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 18 Nov 2002 17:39:21 +0100


Marie Robichon wrote:
> I canot get this example from the zope bible to work.  Any ideas 
> anyone??  I am calling the form with a value for month in the namespace 
> so that's not the problem:
> 
> <SELECT name="month">
>  <dtml-in "('January', 'February', 'March', 'April',
>            'May', 'June', 'July', 'August',
>            'September', 'October', 'November', 'December')">
>    <OPTION <dtml-if expr="month == 
> _.['sequence-item']">SELECTED</dtml-if>value="<dtml-var 
> sequence-item>"><dtml-var
>    sequence-item></OPTION>
>  </dtml-in>
> </SELECT>

Can you explain, WHAT happens exactly? Would be much easier to track 
down your problem, if I know what's going wrong...

-mj