[Twisted-web] how to redirect to another url
Alberto Trujillo
alberto.trujillo at ucd.ie
Mon Sep 5 10:35:39 MDT 2005
Michal Pasternak wrote:
>Dnia Monday 05 September 2005 12:15, Alberto Trujillo napisał:
>
>
>>Could anybody tell me what I must change in the next code to do an
>>automatic redirection of url.
>>
>>
>
>Here comes an untested solution... I think it will work:
>
>
>
>>30 # content = '2;URL=' + href
>>
>>
>
> content = [ '2;URL=', href ]
>
>You shouldn't add URLOverlay and str object. Just return them from render_
>method, and it will be treated in the right way.
>
>Of course, everything depends on your render method :) If it looks like
>"return str(data['content'])", well, it still will not work :^)
>
>
>
Thank you very much, this works perfectly Michal, and even you were
right in the idea that you have about my render method.
Thank again, and thank to everybody who has answer my question and help
me with my nevow problems.
More information about the Twisted-web
mailing list