[Zope] DTML Loop Iteration

Andreas Jung Andreas Jung <andreas@andreas-jung.com>
Thu, 17 Jul 2003 21:08:05 +0200


What about checking the API for dtml-in? There is a whole bunch of
DTML documentation available e.g. several chapters in the Zope Book.

-aj

--On Donnerstag, 17. Juli 2003 12:58 Uhr -0600 hpinson@indepthl.com wrote:

> I have a dtml looping question,  Does anyone know how to iterate a
> loop using a counter within the loop for doing other things:
>
> <dtml-in "_.range(0,9,1)">
>
>   <dtml-in expr="SQL_getSubject(subject_id=3,standard_no=counter)">
>
>      Display stuff from query...
>
>   </dtml-in>
>
> </dtml-in>
>
> Where 'counter' is an iteration variable of the loop.
>
> It is the 'counter' variable I am having trouble with then syntax
> for.  Thanks!
>
> Harlow Pinson
> Indepth Learning
> Email: hpinson@indepthl.com
> Web: http://www.indepthl.com
> Voice: 505-994-2135
> FAX: 208-475-7678
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )