Hi;<br>
I´m trying to increment a variable in a page template. Here´s the general idea in my code:<br>
<br>


<div>&lt;div metal:define-macro="main" tal:define="x python:0"&gt;</div>


<div>&nbsp;</div>


<div>&lt;tal:block tal:define="x python:x + 1"&gt;</div>


<div>&lt;td&gt;<br>
&lt;input type="hidden" tal:attributes="value item/name; name python:'item_name_' + `x`"&gt;<br>
<br>
<br>
Now, all of that works...once. That is, it increments from 0 to 1, but not from 1 to 2! Each time I pass through the td element, I need it to increment. I tried putting the tal definition in the td, but then it didn´t even increment once! What do?<br>
TIA,<br>
Tony</div>
<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone.  Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>