x = request.HTTP_REFERER

so, RESPONSE.redirect(request.HTTP_REFERER)

will reload the page that called the script...

Kevin Carlson wrote:

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?
Any ideas?

Kevin

_______________________________________________
Zope maillist  -  Zope@zope.org
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

-- 
Jason Bush  ---    jason@nol.org
Nebraska Online    http://www.nol.org