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

2009-08-31 Thread Miguel Beltran R.
2009/8/25 José Henrique jhr...@gmail.com 2009/6/26 Miguel Beltran R. yourpa...@gmail.com: Hi list I used before with dtml something like this dtml-call request.set('sumVar',0) dtml-in ... dtml-call request.set('sumVar', sumVar + queryVar) /dtml-in The sum is dtml-var sumVar

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

2009-06-27 Thread Miguel Beltran R.
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

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

2009-06-27 Thread Andreas Jung
On 27.06.09 17:15, Miguel Beltran R. wrote: 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

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

2009-06-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel Beltran R. wrote: Hi list I used before with dtml something like this dtml-call request.set('sumVar',0) dtml-in ... dtml-call request.set('sumVar', sumVar + queryVar) /dtml-in The sum is dtml-var sumVar This is possible to made