[Zope] List
Dieter Maurer
dieter@handshake.de
Wed, 9 Aug 2000 23:52:32 +0200 (CEST)
William JOYE writes:
> I'm a newbie in zope. I think is a simple problem but I can find a solution.
> I would like to show 2 lists (ex: list1 and list2) like this :
>
> list1 = 1, 2, 3,...
> list2 = A, B, C,...
>
> list1 + list2 =
>
> 1 A
> 2 B
> 3 C
>
> How can I iterate 2 lits in one dtml-in ?
<dtml_in "_.range(0,_.len(list1))">
<dtml-let index=sequence-item>
<dtml-var "list1[index]"> <dtml-var "list2[index]"><br>
</dtml-let>
</dtml-in>
This will work for lists up to 999 elements.
Dieter