Raising an exception from tal
3 Feb
2004
3 Feb
'04
6:30 p.m.
Is there an accepted idiom for raising an exception via tal? Or, do I need to script that? What I'm trying to do is raise a NotFound exception under certain conditions. Thanks!
4 Feb
4 Feb
9:12 p.m.
New subject: [Zope] Raising an exception from tal
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
8096
Age (days ago)
8097
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dieter Maurer -
Steve McMahon