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
> 
> 
>
> 
> The sum is 
> 
> This is possible to made with ZPT?

It is possible...

 

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.
- --
===
Tres Seaver  +1 540-429-0999  tsea...@palladion.com
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKRYVA+gerLs4ltQ4RAoaPAKCs6/ILvD+1i5kA5UtVvqJwWpk+xwCg2u++
5aEKQ0j4qUQdx23uC5gsD94=
=zdwr
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.org
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 )


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

2009-06-26 Thread Miguel Beltran R.
Hi list

I used before with dtml something like this


   

The sum is 

This is possible to made with ZPT?
-- 

Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
___
Zope maillist  -  Zope@zope.org
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 )


Re: [Zope] Zope Digest, Vol 61, Issue 14

2009-06-26 Thread Yuri
>
> Hi list
>
> I have 2 templates, in second template I need render a  only when the
> first template have defined a variable.
>
> template1:
> 
>
>   





>
> 
>
> template2:
> 
>
>span2
>   

span2


>span2
>span2
>span2
>span3
> 
>
> any condition in span not work  :( 

___
Zope maillist  -  Zope@zope.org
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 )