23 Aug
2003
23 Aug
'03
6:17 a.m.
On Thu, Aug 21, 2003 at 03:16:04PM -0700, Jonathan Mark wrote:
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? I know how to modify a tag using REPLACE, ATTRIBUTES etc., but I want to modify a variable that I have previously defined.
for math you can use a tales python expression... <tal:define="foo python:foo + 1"> -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's FORGETFUL RADIOCACTIVE MAJOR! (random hero from isometric.spaceninja.com)