[ZPT] Referencing Lists with TAL

Amy Schmidt schmidtamylee@yahoo.com
Tue, 23 Oct 2001 07:37:15 -0700 (PDT)


I would like to use TAL to reference a list of lists
returned by my python script. Here's an example of the
object being returned (1 list that contains 2 other
lists):
[['A','B','C'],[1,2,3]]

I am having trouble referencing the 2 internal lists
in TAL. Specifically, I would like to populate 2
select (drop-down) menus in HTML with one object call
that returns both lists. Here are some additional code
snippets. 

<span tal:define="global opts
python:here.objects.vach_opts_logic()"></span>
<select>
<option tal:repeat="o opts" tal:content="o/{need help
here to reference/repeat sublist 1}"></option>
</select>
<select>
<option tal:repeat="o opts" tal:content="o/{need help
here to reference/repeat sublist 2}"></option>
</select>

Desired result:
<select>
<option>A</option><option>B</option><option>C</option>
</select>
<select>
<option>1</option><option>2</option><option>3</option>
</select>

Thanks in advance, AMY

amy schmidt
interactive programmer
arnoldworldwide

__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com