I would like to ultimately remove the python traceback error code display from messages (printed after standard_html_error fires off). However, I'm not sure how to disable this? Thanks PK
On Mon, May 29, 2000 at 05:33:20AM -0400, Patrick J.M. Keane wrote:
I would like to ultimately remove the python traceback error code display from messages (printed after standard_html_error fires off). However, I'm not sure how to disable this?
By default Zope is installed to run in debug mode. One of the effects of running in debug mode is that tracebacks are displayed in error messages as visible HTML. If you switch debug mode off, tracebacks will be included in error messages as HTML comments, thus rendering them invisible from the unsuspecting site visitor. To switch debug mode off, you should start Zope without the -D command line switch. In a stock Zope install, this means editing 'start' (or 'start.bat' on win32) and removing the flag there. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
On Mon, May 29, 2000 at 01:00:55PM +0100, Chris Withers wrote:
Martijn Pieters wrote:
If you switch debug mode off, tracebacks will be included in error messages as HTML comments, thus rendering them invisible from the unsuspecting site visitor.
Is that true even if you override standard_error_message?
Yes, the stacktrace is appended to whatever standard_error_message returns, IIRC. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server ---------------------------------------------
Take off the -D switch in your zope start script. <dtml-var error_tb> will let you show traceback programmatically. Believe me, you will miss them once you turn it off. Chien-pin On Mon, 29 May 2000, Patrick J.M. Keane wrote:
I would like to ultimately remove the python traceback error code display from messages (printed after standard_html_error fires off). However, I'm not sure how to disable this?
Thanks PK
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Chien-Pin Wang -
Chris Withers -
Martijn Pieters -
Patrick J.M. Keane