[Zope] re: DTML Loop Interation
Chris Withers
chrisw@nipltd.com
Fri, 18 Jul 2003 15:39:50 +0100
hpinson@indepthl.com wrote:
> Ah, the answer never fails to appear a minute after you ask the
> question:
>
> <dtml-in "_.range(0,9,1)">
>
> <dtml-in expr="SQL_getSubject(subject_id=3,standard_no=_['sequence-
> number'])">
> Display stuff from query...
> </dtml-in>
>
> </dtml-in>
>
> Where _['sequence-number'] replaces counter
>
> Maybe this solution will help someone else. :o)
Gotta ask, but why are you doing this in DTML?
Looks like Python Script territory to me :-)
Chris