Re: [Zope] a redirect of an url in Python
[EMAIL PROTECTED] 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 ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] a redirect of an url in Python
[EMAIL PROTECTED] wrote: Part 1.1Type: Plain Text (text/plain) in python you have to raise a redirect, search the lists for exact syntax something along the lines of raise Redirect "url" Kapil ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] a redirect of an url in Python
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" ___ Zope maillist - [EMAIL PROTECTED] 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 )