[Zope] Looping in DTML
Michel Pelletier
michel@digicool.com
Tue, 17 Aug 1999 09:35:21 -0400
> -----Original Message-----
> From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk]
> Sent: Tuesday, August 17, 1999 6:38 AM
> To: Andreas Kostyrka
> Cc: Zope List
> Subject: Re: [Zope] Looping in DTML
>
>
> >using *that* function...
> >Well, I'm not sure that the 1000 limit does any good ;)
> ><dtml-in "_.range(999)">
> > <dtml-let out=sequence-item>
> > <dtml-in "_.range(999)">
> > <dtml-var "out*999+_['sequence-item']"><BR>
> > </dtml-in>
> ></dtml-in>
> >
> >Andreas
>
> ahhh... good point! :)
It does have the added protection of not letting some newbie range()
gazillions of objects. If you're clever enough to use range() in this
way, then you are welcome to extend it's 'range' by up to powers of one
thousand as much as you'd like.
It also aint pretty. ;)
-Michel
> ------
> Dr Tony McDonald, FMCC, Networked Learning Environments Project
> http://nle.ncl.ac.uk/
> The Medical School, Newcastle University Tel: +44 191 222 5888
> Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
>
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
>
> For developer-specific issues, zope-dev@zope.org -
> http://www.zope.org/mailman/listinfo/zope-dev )
>