--On 12. September 2006 14:16:23 +0100 Alan <[EMAIL PROTECTED]> wrote:
Dears,
I am looking for help.
I want to pass, when submitting a FORM from a page template, dictionary.
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"
You can perform assignment that way in ZPT. First it is bad style.
You really want to prepare your data inside a PythonScript, call
the script from a ZPT and re-use the data as returned from the script.
If you don't want follow that road, try this:
tal:define="dummy python: somedict.update({key:value})"
-aj
pgpG4Zll9kMQy.pgp
Description: PGP signature
_______________________________________________ Zope maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
