[Zope] Simple Iterator

Oliver Bleutgen myzope@gmx.net
Mon, 29 Oct 2001 10:41:58 +0100


Ben Ocean wrote:

> Hi;
> How do I call the value of  _.range() within a <dtml-in> expression?
>
> <dtml-in expr="_.range(number_attendees)">
>  Print the number "x"
> </dtml-in>

Hi Ben,
not sure if that is what you want:

<dtml-in expr="_.range(number_attendees)">
<dtml-var sequence-item>
</dtml-in>

or when you want to use it in a python call for
further processing:


<dtml-in expr="_.range(number_attendees)">
<dtml-var "_['sequence-item']*10">
</dtml-in>