|
Gregory (Grisha) Trubetskoy
grisha at modpython.org
Sat Mar 6 22:12:11 EST 2004
You might be able to:
raise apache.SERVER_RETURN, apache.OK
I haven't tested it, but I think it should work.
On Sat, 6 Mar 2004, Daniel West wrote:
>
> 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
>
|