[Zope] inheritedAttribute search order

Gilles Lenfant gilles at pilotsystems.net
Mon Oct 27 11:19:01 EST 2003


Hi,

Given such a situation...

class MyClass(Base1, Base2, Base3):
    ...
    def foo(self, arg1, arg2):
        """ """
        x = ...
        y = ...
        ...
        z = MyClass.inheritedAttribute('foo')(self, x, y)
        ...

In the case where more than one base class has a "foo" method/attribute, in
what order does inheritedAttribute() search that "foo" attribute ?

Base1 -> Base2 -> Base3 ?
Base3 -> Base2 -> Base1 ?
Other ?

Many thanks in advance.

--
Gilles






More information about the Zope mailing list