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
BaseClass.__dict__['__init__'](self, arg1, arg2, ...)
Stefan
--On Freitag, 07. Juni 2002 09:29 +0200 Sylvain Thénault <thenault@nerim.net> wrote:
On Thursday 06 June à 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.html
ok, I see my problem now. However, this document says it can be resolved 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 him on which super class __init__ should be call. Any idea ?
-- BLOWFISH, n. - Preference for beef.
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )