[Zope] Inheritance glitches?
Benno Rice
benno@netizen.com.au
Fri, 22 Oct 1999 17:39:06 +1000
On Fri, Oct 22, 1999 at 04:59:14PM +1000, Benno Rice wrote:
> 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?
Ok, it seems that ZClasses aren't classes. That's a pain.
Is there any way around this?
--
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"