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')): req.internal_redirect('/errors/missing_good.html') return apache.OK # Do database insertion here # ... %> <html> <body> Successful form POST </body> </html> 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(). -Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.modpython.org/pipermail/mod_python/attachments/20040306/20e0b99a/attachment.html
|