[Zope] Inheritance glitches?

Benno Rice benno@netizen.com.au
Fri, 22 Oct 1999 16:59:14 +1000


Hi,

I'm trying to write an external ZClass base class which inherits from
CatalogAware and another external ZClass base I've written.

I'm trying to call CatalogAware's manage_afterAdd function from within
my new class's manage_afterAdd function, but whenever I try it, I get

Error Type: TypeError
Error Value: unbound method must be called with class instance 1st argument

My code looks like this:

class BasicGroup(CatalogAware, LogAware):
    meta_type = 'BasicGroup'

    def manage_afterAdd(self, item, container):
        CatalogAware.manage_afterAdd(self, item, container)
	...

Any ideas?

-- 
Benno Rice                                      "No, no. We're *sweet* and
XNFP Aries Dark Subculture-                      *innocent* evil bastards."
friendly Internet Geek
benno@netizen.com.au                                      "Defend your joy"