[mod_python] Redirect from publisher?

Alexander Steinert stony8 at gmx.de
Tue Nov 6 12:50:14 EST 2001

Some of my mod_python.publisher functions want to redirect the client to
another URL under certain conditions (e.g. redirect from a secure server
to an insecure or vice versa).

Do you consider this a bad idea?

My first approach would be to let the publisher function set an
attribute of the request object and return nothing, so that a special
handler (called after the publisher) can do the redirect (as described
in the FAQ). What do you think?



More information about the Mod_python mailing list