[Zope] For loops in dtml

Lalo Martins lalo@hackandroll.org
Wed, 23 Feb 2000 14:54:21 -0200


On Wed, Feb 23, 2000 at 04:18:20PM +0000, Chris Withers wrote:
> Anyone know how I can do the equivalent of the following in dtml:
> 
> for (int i=0; i<count; i++)
> {
>   ...stuff...
> }

You need to learn Python :-)

<dtml-in "_.range(count)">
  stuff
</dtml-in>

[]s,
                                               |alo
                                               +----
--
      I am Lalo of deB-org. You will be freed.
                 Resistance is futile.

http://www.webcom.com/lalo      mailto:lalo@webcom.com
                 pgp key in the web page

Debian GNU/Linux       ---       http://www.debian.org
Brazil of Darkness   --   http://zope.gf.com.br/BroDar