[Zope] Increment In PT?

Andreas Jung lists at zopyx.com
Mon Jul 30 10:23:23 EDT 2007



--On 30. Juli 2007 10:16:35 -0400 tonylabarbara at aol.com wrote:

> Hi;
> I´m trying to increment a variable in a page template. Here´s the
> general idea in my code:
>
>
> <div metal:define-macro="main" tal:define="x python:0">

Why do you need a counter in ZPT? This is absolutely one
of the worst things you can go in ZPT. Describe your concrete use-case
and we might think about a suitable and clean solution. But thinking
about counters in ZPT is a waste of life-time.

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20070730/aaf77e48/attachment.bin


More information about the Zope mailing list