I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen. Can anyone help me ????? thks a lot David Sergent A french zoppeur :o)
dsergent@imexpert.com wrote:
I want to redirect my current url to another in Python. I've tried return REQUEST.get('url'), but It only writes the url on the screen.
Firstup, posting HTML mail to the list doesn't help anyone ;-) That said, It sounds like what you want to do is end your python method with: return REQUEST.RESPONSE.redirect(REQUEST['url']) HTH, Chris
Both this one line python method: raise 'Redirect', 'http://www.zope.org' and this DTML method <dtml-raise type="Redirect"> http://www.zope.org </dtml-raise> work. P. S. the double quotes around Redirect in the DTML method are significant. With single quotes, it shows up as an error named Redirect Bill. On Fri, 1 Sep 2000, Kapil Thangavelu wrote:
in python you have to raise a redirect, search the lists for exact syntax something along the lines of
raise Redirect "url"
participants (4)
-
Bill Welch -
Chris Withers -
dsergent@imexpert.com -
Kapil Thangavelu