[Zope] how do I calculate a value in DTML ?

Miller, John M. jmiller1@uop.com
Wed, 23 Jun 1999 07:25:11 -0500


How about

<!--#with "_.namespace(i=i+1)"-->
  _the stuff_
<!--#/with-->

???

I've never tried it myself so this may be totally bogus.  I just remember
seeing mention of this in the DTML User's Guide.

John Miller
DDASC
x1219

> -----Original Message-----
> From:	Alexander Staubo [SMTP:alex@mop.no]
> Sent:	Tuesday, June 22, 1999 3:39 PM
> To:	Zope Mailing List (E-mail)
> Subject:	RE: [Zope] how do I calculate a value in DTML ?
> 
> Here's one way:
> 
> <!--#call "REQUEST.set('i', i + 1)"-->
> 
> Yes, I know, it's a little lame; there should be a way to deal with
> temporary variables without associating them with REQUEST.
> 
> --
> Alexander Staubo             http://www.mop.no/~alex/
> "It has taken the planet Earth 4.5 billion years to discover it is
> 4.5 billion years old." --George Wald
> 
> >-----Original Message-----
> >From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> >Joachim Schmitz
> >Sent: 22. juni 1999 22:33
> >To: zope@zope.org
> >Subject: [Zope] how do I calculate a value in DTML ?
> >
> >
> >
> >hi,
> >
> >this is certainly a silly question, but I don't find an example for it.
> >
> >I simply want to do for example:
> >
> >i = i + 1 without displaying the value.
> >
> >Gruß
> >
> >Joachim Schmitz
> >
> >
> >
> >_______________________________________________
> >Zope maillist  -  Zope@zope.org
> >http://www.zope.org/mailman/listinfo/zope
> >
> >(For developer-specific issues, use the companion list,
> >zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
> >
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://www.zope.org/mailman/listinfo/zope
> 
> (For developer-specific issues, use the companion list,
> zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )