[ZODB-Dev] Issue trying to remove elements in OOTreeSet
Shane Hathaway
shane at hathawaymix.org
Fri Sep 24 09:27:28 EDT 2010
On 09/24/2010 07:03 AM, Jim Fulton wrote:
> On Fri, Sep 24, 2010 at 4:17 AM, César Muñoz<xcumail at gmail.com> wrote:
>> Hello Marius,
>>
>> thank you so much for your quick answer! I'll give it a try implementing
>> these methods and will get back to you with the result.
>> But anyway, the Chatroom class is inheriting from Persistent, I thought this
>> base class provided some basic comparison methods...
>
> It does. That's the problem. It would be better if it didn't and
> insertion failed. The methods it provides are inherited from object
> and compare based on object address, which completely inappropriate
> for persistent objects.
+1, FWIW.
Shane
More information about the ZODB-Dev
mailing list