Re: [Zope] Customizing the standard_error_message DTML method
At 05:21 AM 2/14/2003, Asad Habib wrote:
--- Dylan Reinhardt <zope@dylanreinhardt.com> wrote:
At 01:27 PM 2/13/2003, Asad Habib wrote:
Does anyone know if Zope allows customization of error messages?
It does. Read:
http://www.zope.org/Members/JohnC/StandardErrorMessage
Yes, I read this article. However, it mentions that the only way to customize the standard_error_message method is to modify Zope's Python source code.
Huh?? The article is about modifying the contents of a DTML method and introduces the exception-related variables that you may be most interested in. It also explains some common usage of standard_error_message. Toward the end it mentions the significance of one command line switch and notes what conditions can't be changed without breaking into the source... but the first 3-4 sections are exactly the information you need. One thing it takes for granted as obvious is that standard_error_message is just an ordinary DTML method. Pretty much anything you can do in DTML can be done in standard_error_message. Open up the standard_error_message in the root of your ZMI, read it carefully and take another look at the article. Dylan
Dylan Reinhardt wrote:
That article is a little out of date now, but all the info in it is still correct...
exactly the information you need. One thing it takes for granted as obvious is that standard_error_message is just an ordinary DTML method. Pretty much anything you can do in DTML can be done in standard_error_message.
...but now standard_error_message can be a ZPT or a python script. Also, unauthorized errors are now handled by standard_error_message, whereas they used to always be handled by the hard coded one on the file system cheers, Chris
participants (2)
-
Chris Withers -
Dylan Reinhardt