[Zope] Raising an exception from tal
Dieter Maurer
dieter at handshake.de
Wed Feb 4 16:12:06 EST 2004
Steve McMahon wrote at 2004-2-3 10:30 -0800:
>Is there an accepted idiom for raising an exception via tal? Or, do I
>need to script that?
You must use a script.
>What I'm trying to do is raise a NotFound exception under certain
>conditions.
You may set the response's status code "request.RESPONSE.setStatus(404)".
Note however, that this does not abort the transaction and
does not call the error page.
--
Dieter
More information about the Zope
mailing list