[Zope] response.redirect not working

2005-05-20 Thread Artūras
Hello, I have a web page, a form on it, and on form submit action (to the same page) I do some database actions (update some record, to be correct). The exact code looks like this (filename edit_html): . (1) (2) Saved. (3) . On #1 line I check if form variable is

[Zope] RESPONSE.redirect not working

2006-05-23 Thread Andrew Hedges
I'm at my wit's end. Any help is appreciated. Yes, I have worn Google out trying to figure this out. In my (yeah, yeah, I know) DTML method, I have structured things like so: <-- a Python script that checks whether the user is allowed to see the page <-- header include ...

Re: [Zope] response.redirect not working

2005-05-20 Thread Paul Winkler
On Fri, May 20, 2005 at 11:45:58PM +0300, Art??ras wrote: > The problem is on line #2. According to what's written, zope should > drop everything and do immediate redirect to page index_html (ok, it's > not where the first error appeared, I just managed to generate this > error as the most clearest

Re: [Zope] response.redirect not working

2005-05-20 Thread David H
ArtÅras wrote: Hello, I have a web page, a form on it, and on form submit action (to the same page) I do some database actions (update some record, to be correct). The exact code looks like this (filename edit_html): . (1) (2) Saved. (3) . On #1 line I check if form variab

RE: [Zope] response.redirect not working

2005-05-20 Thread Artūras
e expected behavior :) Thank you all for your support and ideas :) ArtÅras -Original Message- From: Jo Meder [mailto:[EMAIL PROTECTED] Sent: 2005 m. geguÅÄs 21 d. 00:10 To: Art??ras Subject: Re: [Zope] response.redirect not working Am 20.05.2005, 22:45 Uhr schrÃhb Art??r

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Jens Vagelpohl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23 May 2006, at 23:24, Andrew Hedges wrote: Here are the contents of the response object: HTTP/1.1 302 Moved Temporarily Server: Zope/(Zope 2.9.2-, python 2.4.2, darwin) ZServer/1.1 Date: Tue, 23 May 2006 22:05:51 GMT Content-Length:

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Jo Meder
Am 24.05.2006, 00:24 Uhr schriebte Andrew Hedges <[EMAIL PROTECTED]>: > I'm at my wit's end. Any help is appreciated. Yes, I have worn > Google out trying to figure this out. > > In my (yeah, yeah, I know) DTML method, I have structured things like > so: > > <-- a Python script

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Andrew Hedges
Jo, THANK YOU! This worked (with a slight change to the dtml-return): I *thought* I had seen redirect work as I had had it before, but maybe I misunderstood what was happening. In any case, many thanks! -Andrew On May 23, 2006, at 5/23/2006 4:46 PMMDT, Jo Meder wrote: Hi th

Re: [Zope] RESPONSE.redirect not working

2006-05-23 Thread Andrew Hedges
Actually, that is exactly what is happening. It's the current URL with the contents of login_html rendered. I changed it to the following and it worked: Thanks again for your help! -Andrew On May 23, 2006, at 5/23/2006 5:02 PMMDT, Jo Meder wrote: Am 24.05.2006, 00:57 Uhr