[mod_python] PSP Return

Daniel West dwmp at opti.cgi.net
Sat Mar 6 17:14:48 EST 2004

Consider the following PSP code:

if(not form.has_key('good')):
     return apache.OK

# Do database insertion here
# ...
Successful form POST

The return apache.OK isn't valid there, but is there an 
equivalent?  Internal redirects are great for keeping error pages simple 
and for hiding implementation details from the end user.  Plus you cannot 
redirect a POST request with psp.redirect().

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20040306/20e0b99a/attachment.html

More information about the Mod_python mailing list