[Zope] selected in select lists

Garry Saddington garry at schoolteachers.co.uk
Wed Oct 12 17:29:15 EDT 2005


Nicolas Gouzy wrote:

>I think this code works :
>
><select name="groupabbrev">
><dtml-in getpastoralgroups>
> <option value="<dtml-var expr="_['sequence-item']">" <dtml-if
>expr="groupabbrev==_['sequence-item']"> selected</dtml-if> ><dtml-var
>expr="_['sequence-item']"></option>
></dtml-in>
></select>
>
>--
>Nicolas Gouzy
>nicolas.gouzy at gmail.com
>
>
>  
>
This producing the following result, is this what it should do?
<select name="groupabbrev">
   <option value="<Shared.DC.ZRDB.Results.r object at 
0x43aa7c0c>"><Shared.DC.ZRDB.Results.r object at 0x43aa7c0c></option>
   <option value="<Shared.DC.ZRDB.Results.r object at 
0x43f95824>"><Shared.DC.ZRDB.Results.r object at 0x43f95824></option>
   <option value="<Shared.DC.ZRDB.Results.r object at 
0x43aa7c0c>"><Shared.DC.ZRDB.Results.r object at 0x43aa7c0c></option>
   <option value="<Shared.DC.ZRDB.Results.r object at 
0x43f95824>"><Shared.DC.ZRDB.Results.r object at 0x43f95824></option>
</select>
regards
Garry



More information about the Zope mailing list