Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:18, Analog Kid garlictrom...@gmail.com wrote: i want to make sure that a certain method gets called before anything else when the template gets rendered. Sooo...stick it first in the template! Strange question... -- Lennart Regebro: Pythonista, Barista,

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-12 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:36, Analog Kid garlictrom...@gmail.com wrote: 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. Sure you can. You are somehow barking up the wrong tree here. Back down and explain what you

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-12 Thread Andreas Jung
On Thu, Mar 12, 2009 at 09:25, Lennart Regebro rege...@gmail.com wrote: On Wed, Mar 11, 2009 at 09:18, Analog Kid garlictrom...@gmail.com wrote: i want to make sure that a certain method gets called before anything else when the template gets rendered. Sooo...stick it first in the template!

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11.03.2009 6:22 Uhr, Analog Kid wrote: Hi All: I need to know the order of method calls inside ZopePageTemplate.py whenever a form from the PT is submitted or even when the PT is rendered. Can anyone shed some light on this please? This

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Analog Kid
sry about that ... what i mean is i need to know the order of methods when a page is rendered (on server) ... regards, AK On Wed, Mar 11, 2009 at 1:02 PM, Andreas Jung li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11.03.2009 6:22 Uhr, Analog Kid wrote: Hi All:

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Andreas Jung
Where and why is this relevant? -aj On Wed, Mar 11, 2009 at 08:54, Analog Kid garlictrom...@gmail.com wrote: sry about that ... what i mean is i need to know the order of methods when a page is rendered (on server) ... regards, AK On Wed, Mar 11, 2009 at 1:02 PM, Andreas Jung

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Analog Kid
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). thanks, AK On Wed, Mar 11, 2009 at 1:28 PM, Andreas Jung li...@zopyx.com

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 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

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Analog Kid
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 li...@zopyx.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This approach is broken

Re: [Zope] Order of method calls of ZopePageTemplate

2009-03-11 Thread Tres Seaver
-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 li...@zopyx.com wrote: