11 Jul
2002
11 Jul
'02
7:26 p.m.
Kevin Carlson writes:
I have a python script which needs to redirect the browser to the page that called the script. In other words, if I am on the a page called "test" and I call a script named "blah", I want the blah script to do the following (among other things):
... context.request.RESPONSE.redirect(x)
where x is the name or URL of the page that called the script. Make sense? What you name the "browser page" is almost surely the object "REQUEST.PUBLISHED". You can ask it for its "absolute_url".
Dieter