12 Sep
2006
12 Sep
'06
1:23 p.m.
On 9/12/06, Alan <alanwilter@gmail.com> 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" or 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