100% agree... Just answered the specific question ;)
> De : Chris Withers <[EMAIL PROTECTED]>
> Date : Thu, 28 Sep 2006 09:07:33 +0100
> À : Pascal Peregrina <[EMAIL PROTECTED]>
> Cc : Alan <[EMAIL PROTECTED]>,
> Objet : Re: [Zope] Dictionary in ZPT
>
>
Pascal Peregrina wrote:
Hi,
I am not sure about your use case, but this should work:
...
tal:define="global count python: 0; global data python: {}"
...
tal:define="null python: data.update({'jname':jname});"
...
...and anyone writing code like that should be taken out back and loudly
shot..
2006 14:16:23 +0100
> À :
> Objet : [Zope] Dictionary in ZPT
>
> 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
Martijn Pieters wrote:
On 9/12/06, Andreas Jung <[EMAIL PROTECTED]> wrote:
tal:define="dummy python: somedict.update({key:value})"
See, I never manipulate dictionaries in TAL and forgot you had to do
it that way. I gave the wrong answer in my reply.
That's because manipulating dictionaries i
On 9/12/06, Andreas Jung <[EMAIL PROTECTED]> wrote:
tal:define="dummy python: somedict.update({key:value})"
See, I never manipulate dictionaries in TAL and forgot you had to do
it that way. I gave the wrong answer in my reply.
--
Martijn Pieters
___
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"
or
tal:define="global null python: data['jname']=jname"
Just tal:define="nu
--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
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="glo