[Zope] Customizing the standard_error_message DTML method

Dylan Reinhardt zope@dylanreinhardt.com
Fri, 14 Feb 2003 11:14:03 -0800


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