[Zope] External method strangeness

Jim Abrams Jim Abrams <jim@abramstechnology.com>
Fri, 14 Apr 2000 20:09:31 -0400


Ok I'm a zope newbie (abou 5 days), but I've come across some
external method oddities.

If I create a method such as

def hello(self):
    return self.id

then call it like
<dtml-var "hello()">

I get back the name of the folder the method is contained in,
as expected.

However if I call something like...
<dtml-var "hello('somestring')">

The 'somestring' is put into the 'self' param in the external method.
Zope throws an exception saying that "string object has no attribite
'id'"

Is that expected behavior?

----------
Jim Abrams
jim@abramstechnology.com