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? > Thi

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 11.03.2009 6:22 Uhr, Analog Kid wrote: > > Hi All: > > > > I ne

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 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 wrote: >> >> -BEGIN PGP

[Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
Hi I was wondering if there is a way to connect the creation of a session object to a button push. I'll explain in more detail: I have a log in from called login_form, and I have a dtml method called looged_in that is called when we push the submit button in the log in form. What I did i

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Dvir Bar-lev ]-- | Hi | | | | I was wondering if there is a way to connect the creation of a session object | to a button push. | | I?ll explain in more detail: | | | | I have a log in from called login_form, and I have a dtml method called | looged_in that is

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 wrote: > Where a

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] session data object question

2009-03-11 Thread Dvir Bar-lev
Hi I have a button like that but the the problem is that it also has this value if I refresh the page, what I mean Is this, I put in the logged_in page: Do something And it has the key even if I refresh the page. I also tried to put to see if it keeps this value after we refresh the page and

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 wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > This approach is broken by design-b

Re: [Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
I also tried to change the value of theButton key like so: But if refresh the button it still thinks it has the value Login instead of the value LoggedIn :( -Original Message- From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Dvir B

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Dvir Bar-lev ]-- | Hi | | I have a button like that but the the problem is that it also has this | value if I refresh the page, what I mean Is this, I put in the logged_in | page: That is highly unlikely, unless you are refreshing AFTER you submit the form, in which

Re: [Zope] session data object question

2009-03-11 Thread Dvir Bar-lev
Yep I refresh after, I'll try to work with cookies than, tx -Original Message- From: Andrew Milton [mailto:a...@theinternet.com.au] Sent: Wednesday, March 11, 2009 11:13 AM To: Dvir Bar-lev Cc: zope@zope.org Subject: Re: [Zope] session data object question +---[ Dvir Bar-lev ]---

Re: [Zope] session data object question

2009-03-11 Thread Lennart Regebro
On Wed, Mar 11, 2009 at 09:32, Dvir Bar-lev wrote: > What I need is a way to know if we loaded the page as a result of > pressing the button or as a result of refreshing the page, as I need to > do different things in each case. There is no difference between a refresh and a normal page load. --

Re: [Zope] session data object question

2009-03-11 Thread Andrew Milton
+---[ Lennart Regebro ]-- | On Wed, Mar 11, 2009 at 09:32, Dvir Bar-lev wrote: | > What I need is a way to know if we loaded the page as a result of | > pressing the button or as a result of refreshing the page, as I need to | > do different things in each case. | | There

[Zope] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Hi I want to redirect a user from my page to another page after a certain time, I put this code in the dtml page at the top I want to redirect from: But although it does refresh after the timeout it stays in the same page instead of going to the address listed in URLAddress. Anyone k

Re: [Zope] redirect timeout doesn't work

2009-03-11 Thread Andreas Jung
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11.03.2009 13:59 Uhr, Dvir Bar-lev wrote: > Hi > > > > I want to redirect a user from my page to another page after a certain > time, I put this code in the dtml page at the top I want to redirect from: > > > > Likely improper syntax. The

Re: [Zope] redirect timeout doesn't work

2009-03-11 Thread Thierry Florac
Le mercredi 11 mars 2009 à 14:59 +0200, Dvir Bar-lev a écrit : > I want to redirect a user from my page to another page after a certain > time, I put this code in the dtml page at the top I want to redirect > from: > > > > Address’)"> Maybe I'm wrong but I think it should be something like :

Re: [Zope] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Yep, you were right, the syntax I used was bad, but now I encountered a diffrent problem. If i set the header as you said and manually refresh the page than it wont redirect again. Anyone encountered this before? Can't find anything on the web about this problem -Original Message- From:

Re: [Zope] redirect timeout doesn't work

2009-03-11 Thread Dvir Bar-lev
Hi just wanted to add something that I forgot to meantion. The problem I described only happenes on IE, on firefox it does the redirect even after I refresh the page manually -Original Message- From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of Dvir Bar-lev Sent: We

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 wrote: > > Th