[Zope] Dictionary in ZPT

Pascal Peregrina Pperegrina at Lastminute.com
Thu Sep 28 05:05:36 EDT 2006


100% agree... Just answered the specific question ;)


> De : Chris Withers <chris at simplistix.co.uk>
> Date : Thu, 28 Sep 2006 09:07:33 +0100
> À : Pascal Peregrina <Pperegrina at Lastminute.com>
> Cc : Alan <alanwilter at gmail.com>, <zope at zope.org>
> 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...
> 
> Chris
> 
> -- 
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


More information about the Zope mailing list