[Zope] Order of method calls of ZopePageTemplate

Tres Seaver tseaver at palladion.com
Wed Mar 11 10:22:14 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Analog Kid wrote:
> hi andreas:
> 
> the reason i need to do it this way is that no page template must be
> modified ... so i cant call a py script from the template.
> 
> regards,
> AK
> 
> On Wed, Mar 11, 2009 at 1:56 PM, Andreas Jung <lists at zopyx.com> wrote:
> 
> This approach is broken by design-by-design. If you want to depend on
> the execution order: move the related code into a Python script and call
> the script from within the template.
> 
> -aj
> 
> On 11.03.2009 9:18 Uhr, Analog Kid wrote:
>>>> i want to make sure that a certain method gets called before anything
>>>> else when the template gets rendered. so if i know about the order in
>>>> which page template methods get called, i can patch one (the first in
>>>> the order).

Which "methods" are you referring to?  The actual methods of the
template objects themselves?  If so, look at
Shared/DC/Scripts/Bindings.py (the Bindings base class defines __call__).


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at 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

iD8DBQFJt8kW+gerLs4ltQ4RAsONAJ4gNgmGAmAtqerpSSnZUnIenNNWpwCfbTnc
eySp6Uz1LiNRrzTzIWyrKrQ=
=yWN2
-----END PGP SIGNATURE-----



More information about the Zope mailing list