On 9/12/06, Alan <[EMAIL PROTECTED]> wrote:
I started with that:
tal:define="global count python: 0; global data python: {}"
and I would like to do something like:
  tal:define="global data['jname'] python: jname"
  tal:define="global null python: data['jname']=jname"

Just tal:define="null python:data['jname'] = jname" should do. No need
to make the dummy var global anyway.

But I get only error.

Traceback please. What is the error?

Is there a way of creating and increasing a dict inside Zope template page?

Why do you want to? Use a python script instead, or better still, use
a Zope3-style view.

Martijn Pieters
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to