[Zope] inheritance in python product
Chris McDonough
chrism@zope.com
07 Jun 2002 08:50:25 -0400
This wont work either I'm afraid.
Unfortunately if you need to call multiple base class __inits__, the
best solution is just to duplicate the code from those inits in your
subclass.
- C
On Fri, 2002-06-07 at 05:12, Stefan H. Holek wrote:
> You may need to trick the machinery with code like
>=20
> BaseClass.__dict__['__init__'](self, arg1, arg2, ...)
>=20
> Stefan
>=20
>=20
>=20
> --On Freitag, 07. Juni 2002 09:29 +0200 Sylvain Th=E9nault=20
> <thenault@nerim.net> wrote:
>=20
> > On Thursday 06 June =E0 11:59, Chris McDonough wrote:
> >> Hi Sylvain,
> >>
> >> See the description of "inheritedAttribute" in this document:
> >>
> >> http://debian.acm.ndsu.nodak.edu/doc/python-extclass/ExtensionClass.ht=
ml
> >>
> >
> > ok, I see my problem now. However, this document says it can be resolve=
d
> > with the inheritedAttribute class method but without talking about
> > multiple inheritance. In my case, i have to call __init__ on different
> > super classes, and inheritedAttribute does not provide a way to tell hi=
m
> > on which super class __init__ should be call.
> > Any idea ?
> >
>=20
> --
> BLOWFISH, n. - Preference for beef.
>=20
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )