[Zope] what's the equivalent of sequence-item and sequence-key in tal:repeat

Dieter Maurer dieter@handshake.de
Mon, 10 Feb 2003 20:37:12 +0100


Joachim Schmitz wrote at 2003-2-10 11:41 +0100:
 > what is the equivalent of this DTML snipplet in TAL ?
 > 
 > <dtml-in get_all_languages>
 >  <option value="<dtml-var sequence-key>" size=40 <dtml-if 
 > "_['sequence-key'] in
 > getLanguages()">selected</dtml-if>><dtml-var sequence-item></option>
 > </dtml-in>
<tal:option repeat=opt "here/get_all_languages">
  <option tal:define="key python: opt[0]; item python: opt[1]"
    ....


Dieter