[Zope] HOw Do I Modify A Defined Variable In TAL?

Dieter Maurer dieter at handshake.de
Sun Aug 24 00:11:12 EDT 2003


Jonathan Mark wrote at 2003-8-21 15:16 -0700:
 > Using TAL and ZPT, I would like to define a global
 > variable myVar, and then later on in the page 
 > 
 > add 1 to myVar, e.g.  myVar = myVar + 1.
 > 
 > How can I modify a variable in TAL?

You make a new definition:

    ... tal:define="global myVar python: myVar + 1" ...


The TAL specification tells you... (see the Zope Book, 2.6 edition,
on Zope.org).


Dieter



More information about the Zope mailing list