[Zope-dev] [DTML] I give UP!!!! (well, almost... ;))

Martijn Pieters mj@antraciet.nl
Wed, 10 Mar 1999 10:27:57 +0100


At 09:12 10/03/99 , Butch Landingin wrote:
>I've been trying to figure this out, and I've given up (at least for
>the day...:().
>How do I change the value of a temporary variable that I created with
>a namespace method?
>e.g.:
>
><!--#with "_.namespace(prev_value=0)"-->
><!--#in somelist-->
><!--#if "somevalue_from_somelist > prev_value"-->
>
><!-- ***here I want to set prev_value to somevalue_from_somelist*** -->
>
><!--#/if-->
>
>...
>
><!--#if "somevalue_from_somelist < prev_value"-->
>
><!-- ***here I want to set prev_value to somevalue_from_somelist*** -->
>
><!--#/if-->
><!--#/in-->
><!--#/with-->
>...
>

You can't. But you can set variables using the set method of the REQUEST
object. More info can be found in the FAQ (a work in progress from the Zope
Documentation Project, aka ZDP). A online version can be found at
http://www.gaaros.com:9673/FAQ, the question to look for is in the DTML
section, and called 'How do I define a variable for use in a document?'.

Martijn Pieters

--
M.J. Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-6254545 Fax: +31-35-6254555
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------