Order of method calls of ZopePageTemplate
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? TIA, AK
-----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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*. - -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkm3aQgACgkQCJIWIbr9KYycgwCggLVGY3qiql5Ltq3E28sbGosS d5wAoKdCwDH4NYYynsNmqemV5xDSZF7p =J5Jt -----END PGP SIGNATURE-----
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 <lists@zopyx.com> wrote:
-----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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*.
- -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm3aQgACgkQCJIWIbr9KYycgwCggLVGY3qiql5Ltq3E28sbGosS d5wAoKdCwDH4NYYynsNmqemV5xDSZF7p =J5Jt -----END PGP SIGNATURE-----
Where and why is this relevant? -aj On Wed, Mar 11, 2009 at 08:54, Analog Kid <garlictrompet@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 <lists@zopyx.com> wrote:
-----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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*.
- -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm3aQgACgkQCJIWIbr9KYycgwCggLVGY3qiql5Ltq3E28sbGosS d5wAoKdCwDH4NYYynsNmqemV5xDSZF7p =J5Jt -----END PGP SIGNATURE-----
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 <lists@zopyx.com> wrote:
Where and why is this relevant?
-aj
On Wed, Mar 11, 2009 at 08:54, Analog Kid <garlictrompet@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 <lists@zopyx.com> wrote:
-----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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*.
- -aj -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm3aQgACgkQCJIWIbr9KYycgwCggLVGY3qiql5Ltq3E28sbGosS d5wAoKdCwDH4NYYynsNmqemV5xDSZF7p =J5Jt -----END PGP SIGNATURE-----
-----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 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 <lists@zopyx.com <mailto:lists@zopyx.com>> wrote:
Where and why is this relevant?
-aj
On Wed, Mar 11, 2009 at 08:54, Analog Kid <garlictrompet@gmail.com <mailto:garlictrompet@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 <lists@zopyx.com <mailto:lists@zopyx.com>> wrote: >> 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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*.
-aj > >
- -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkm3dZgACgkQCJIWIbr9KYxr+wCffbKYES6t8aS8Fd+eV4So0BN7 zRYAoKh3jdY1eE9nRw4o4VRbgkDd6xnD =8qjv -----END PGP SIGNATURE-----
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@zopyx.com> wrote:
-----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 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 <lists@zopyx.com <mailto:lists@zopyx.com>> wrote:
Where and why is this relevant?
-aj
On Wed, Mar 11, 2009 at 08:54, Analog Kid <garlictrompet@gmail.com <mailto:garlictrompet@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 <lists@zopyx.com <mailto:lists@zopyx.com>> wrote: >> 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 question makes no sense. Template rendering (generation of HTML) occurs on the *server*, form submission on the *browser*.
-aj > >
- -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: info@zopyx.com - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK - ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkm3dZgACgkQCJIWIbr9KYxr+wCffbKYES6t8aS8Fd+eV4So0BN7 zRYAoKh3jdY1eE9nRw4o4VRbgkDd6xnD =8qjv -----END PGP SIGNATURE-----
-----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@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@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-----
On Wed, Mar 11, 2009 at 09:36, Analog Kid <garlictrompet@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 are trying to do. -- Lennart Regebro: Pythonista, Barista, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64
On Wed, Mar 11, 2009 at 09:18, Analog Kid <garlictrompet@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, Notsotrista. http://regebro.wordpress.com/ +33 661 58 14 64
On Thu, Mar 12, 2009 at 09:25, Lennart Regebro <regebro@gmail.com> wrote:
On Wed, Mar 11, 2009 at 09:18, Analog Kid <garlictrompet@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...
+100 - related code should refactored into a script. -aj
participants (4)
-
Analog Kid -
Andreas Jung -
Lennart Regebro -
Tres Seaver