[Twisted-web] HTTP redirection from data_*/render_* methods

Samuel Reynolds sam at SpinwardStars.com
Fri Jul 15 07:40:33 MDT 2005

At 2005-07-15 02:46 PM +0400, you wrote:
>I wondered if I can make an HTTP redirection (302) from inside of render_*
>or data_* method. Here is a code snipped I wrote; I'd like to know if it
>can be considered as "good" nevow practice?

What about
     request.redirect( redirectUrl )
possibly followed by

I haven't ported my app to the latest nevow version
(still on v. 0.1d), but redirects are sufficiently
useful and common that I would expect request.redirect
to still work.

- Sam

Spinward Stars, LLC                        Samuel Reynolds
Software Consulting and Development           303-805-1446
http://SpinwardStars.com/            sam at SpinwardStars.com 

More information about the Twisted-web mailing list