[Zope] is possible use request.set in a zpt?

Miguel Beltran R. yourpadre at gmail.com
Sat Jun 27 11:15:06 EDT 2009


>
>
>
> It is possible...
>
>  <div tal:define="ignored python:request.set('sumVar', 0)">
>
> but not recommended.  The kind of logic you are trying to wedge into the
> template should be pushed out into a Python script, leaving the template
> only with the job of rendering the results.
>
>
> Tres.
> - --
>

I want show tabular data with money and the last show the sum
can you explain me how can made better this then? almost never use python
script :P

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20090627/72850a96/attachment.html 


More information about the Zope mailing list