RE: [Zope] hiding tracebacks, and catching exceptions
Julian wrote:
1) is there any way of setting it so it sends these to web server logs (on stdout) and not to the HTML?
Check the PCGI resource file (the thing actually executed by Apache). There is a variable that says "Hide tracebacks". We ship it in debug mode by default to help us find installation errors.
2)Is there any way of catching and handling exceptions from within DTML?
Check out standard_error_message in the top folder. Otherwise, I'd sure like someone to implement: <!--#try--> <!--#var some_bad_variable--> <!--#except KeyError--> <h3>This page referenced a bad variable.</h3> <!--#/try--> --Paul
On 25-Feb-99 Paul Everitt wrote:
Check out standard_error_message in the top folder. Otherwise, I'd sure like someone to implement:
<!--#try--> <!--#var some_bad_variable--> <!--#except KeyError--> <h3>This page referenced a bad variable.</h3> <!--#/try-->
Anyone on the list know the Zope internals enough to say how hard this would be to implement? --- Julian Morrison Programmer (Zereau Ltd)
On 25-Feb-99 Paul Everitt wrote:
<!--#try--> <!--#var some_bad_variable--> <!--#except KeyError--> <h3>This page referenced a bad variable.</h3> <!--#/try-->
If I want to do this at the moment, I'm going to have to use an "external method"? --- Julian Morrison Programmer (Zereau Ltd)
participants (2)
-
julian@zereau.net -
Paul Everitt