[Zope] How to get name of calling DTML or script..
Dieter Maurer
dieter@handshake.de
Thu, 11 Jul 2002 21:26:56 +0200
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