[Zope] tuples in DTML

Max M maxmcorp@worldonline.dk
Wed, 27 Dec 2000 11:34:25 +0100


From: webmaven@zope.org [mailto:webmaven@zope.org]On Behalf Of Michael
Bernstein

><dtml-in "External_Method(REQUEST)">
>  <dtml-var sequence-item><br>
></dtml-in>

>Which (of course) displays the list as an single item along
>with each of the strings:

>  ['list item 1', 'list item 2', 'list item 3']
>  String 1
>  String 2
>  String 3

>Now, how do I iterate over the list in DTML?

<dtml-call REQUEST.set('the_list', External_Method(REQUEST)[0])>
<dtml-in the_list>
    blah blah .... <dtml-var sequence-item>
<dtml-in>

Something like the above ought to work.

Regards Max M