[Zope] standard_error_message in Python Product

Chris Withers chrisw@nipltd.com
Mon, 25 Nov 2002 16:23:17 +0000


Thomas Guettler wrote:
> Hi!
> 
> Is it possible to write a standard_error_message as a method in a
> python product?

probably

> 
> "def standard_error_message(self, **kwargs)"

...that doesn't look like a good set of parameters. Use whatever parameters a 
ZPT takes when called (look in ZopePageTemplate.py for a __call__ method) and 
emulate that.

Also make sure your method is anonymously accessible and doesn't error.

cheers,

Chris