26 Nov
2002
26 Nov
'02
5:57 p.m.
Thomas Guettler writes:
On Mon, Nov 25, 2002 at 07:32:03PM +0100, Dieter Maurer wrote:
Thomas Guettler writes:
Is it possible to write a standard_error_message as a method in a python product?
"def standard_error_message(self, **kwargs)" Try: def standard_error_message(self, client=None, REQUEST=None, **kwargs):
I tried it with several combinations. Since client and REQUEST are keywordarguments, the two ways should be the same. They are not ;-)
With the second definition, "standard_error_message" can be called like "standard_error_message(client,REQUEST)"; with the first one, you will get a TypeError. Dieter