[Zope] External method default arg weirdness

Nils Kassube nika@kassube.de
Fri, 11 May 2001 23:34:17 +0200


* Dieter Maurer <dieter@handshake.de> [2001-05-11 21:42]:
 
>   Only the automatic passing of the object argument when
>   called from DTML will not work.

A little bit or two paragraphs earlier in the same HowTo:

--cut--
As in standard Python, the self argument is implicit when calling an
External Method and does not need to be passed explicitly by the
programmer. Zope will automatically bind self when an External Method is
called from DTML.

If you define an External Method that takes more arguments than simply
self, you need to pass those arguments when calling the External Method
from DTML.
--cut--

I guess Brian wasn't aware of this problem when writing this.

Cheers,
Nils