[Zope-dev] Multiple inheritance woes

Martijn Pieters mj@antraciet.nl
Thu, 09 Sep 1999 14:25:38 +0200


At 14:06 09/09/99 , Phillip J. Eby wrote:
>At 01:40 PM 9/9/99 +0200, Martijn Pieters wrote:
> >Hmm.. I know this is a python question, but DejaNews nor the Python website
> >give me the answers I am looking for:
> >
> >I define a baseclass derived from CatalogAware and DTMLMethod:
> >
> >class Base(CatalogAware, DTMLMethod):
> >     def index_object(self):
> >         # check a few things I want to know about
> >         # before indexing, maybe even not allowing
> >         # the indexing
> >         CatalogAware.index_object(self)
>
>The last line may be your problem.  Try:
>
>           CatalogAware.index_object.im_func(self)

Thank you Philip. This was the magic I was missing. I knew it'd be 
something like that.

--
Martijn Pieters, Web Developer
| Antraciet http://www.antraciet.nl
| Tel: +31-35-7502100 Fax: +31-35-7502111
| mailto:mj@antraciet.nl http://www.antraciet.nl/~mj
| PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149
------------------------------------------