[Zope-dev] Re: Read-only root database doesn't work ... bug orfeature?

Tim Peters tim at zope.com
Tue May 25 12:35:37 EDT 2004


[Martijn Faassen]
...
> I'm not sure whether the patch ever could've worked. Firstly, the rich
> comparison operations were never called; I think perhaps due to some
> limitation in ExtenionClass.

ExtensionClass doesn't play well with many "newer" Python class features.
Rich comparisons are one of them.

> __cmp__ is called, but instead I just made the method explicit.
> Possibly this is better in Zope 2.7; I'm still testing with 2.6.4.

This may improve with ZODB 3.3 / Zope 2.8, where Persistent is a vanilla
new-style Python class (instead of an ExtensionClass).




More information about the Zope-Dev mailing list