Michael wrote:
I am trying to disable the traceback which appears in site error messages under "view source". I located Application.py under lib/python/OFS and also HTTPResponse.py under lib/python/ZPublisher, but am not sure where to go from here.
I was able to make "site maintainer" hot using mailto:, and got rid of the paragraph telling you to view source, but I cannot figure out how to eliminate the traceback. Any suggestions?
Edit HTTPResponse.py. Attached is a diff, changing the _traceback function to not report anything if the -D flag is not specified. IMHO, you'll probably regret this :) -- ethan mindlace fremen | iMeme - The most full featured Zope Host http://mindlace.net | Root, ZEO, MySQL, Mailman, Unlimited Domains iMeme Partner | http://iMeme.net "It is our desire to remain what we are that limits us. -- Project 2501" 474c474 < else: _tbopen, _tbclose = '<!--', '-->' ---
else: _tbopen, tb, _tbclose = '','',''