[mod_python] How to start a new "page" from within program?

Graham Dumpleton grahamd at dscpl.com.au
Sun Jan 21 21:20:35 EST 2007


alex wrote ..
> Okay, im using the publisher handler and when my web forms do a POST 
> action to functions in my index.py, it loads the information fresh, 
> however when I call a function or series of functions from within my 
> program, it ends up just concatenating the html (req.write's) onto the
> existing page. I really want this one function to just start a new 
> "page" or "connection" (I guess thats what u would call it) , when it is
> summoned. I have no idea how to go about this..Thanks..

Do you mean that you want to redirect the client web browser to another page?
If so, look at mod_python.util.redirect() function in mod_python documentation.
If that is not what you mean, then I am not sure what you are talking about.

Graham


More information about the Mod_python mailing list