[Zope] Operator overriding not working with Zope class.
Tino Wildenhain
tino at wildenhain.de
Tue Oct 26 13:38:33 EDT 2004
Hi,
Am Di, den 26.10.2004 schrieb Etienne Labuschagne um 10:39:
> Sean Hastings wrote:
>
> I don't think it is that as it is resolved correctly when using the
> __gt__ method explicitly. p2.__gt__(p1) works fine, it is p2 > p1 that
> doesn't work. Doing a inspect.getmro in the object's class also gives
> me (ZPerson, Person, ....) so it seems as if Person is second in the
> resolution order. Since there is no __gt__ method defined in ZPerson,
> it should then resolve to Person's __gt__.
Without much research I can imagine this is because of the Zope
classes you use are not new style classes and therefore dont use
all the new interface. I could as well be wrong but maybe
if you try zope 2.8 or 3.x it could be different.
Regards
Tino
More information about the Zope
mailing list