Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread César Muñoz
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... 2010/9/23 Marius

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread Jim Fulton
On Fri, Sep 24, 2010 at 4:17 AM, César Muñoz xcum...@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

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread Shane Hathaway
On 09/24/2010 07:03 AM, Jim Fulton wrote: On Fri, Sep 24, 2010 at 4:17 AM, César Muñozxcum...@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

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread César Muñoz
I see... That explains the issue, after implementing the __cmp__ method everything is now working perfectly. Thank you again for your help guys, I had been stuck in this for 3 days already! César. 2010/9/24 Jim Fulton j...@zope.com It does. That's the problem. It would be better if it didn't

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread Jim Fulton
On Fri, Sep 24, 2010 at 9:27 AM, Shane Hathaway sh...@hathawaymix.org wrote: On 09/24/2010 07:03 AM, Jim Fulton wrote: On Fri, Sep 24, 2010 at 4:17 AM, César Muñozxcum...@gmail.com  wrote: Hello Marius, thank you so much for your quick answer! I'll give it a try implementing these methods

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread Marius Gedminas
On Fri, Sep 24, 2010 at 04:14:34PM +0200, César Muñoz wrote: I see... That explains the issue, after implementing the __cmp__ method everything is now working perfectly. Just note that if you have any valuable preexisting data, it may have been stored incorrectly, using the old default __cmp__

Re: [ZODB-Dev] Issue trying to remove elements in OOTreeSet

2010-09-24 Thread Marius Gedminas
On Fri, Sep 24, 2010 at 11:09:58AM -0400, Jim Fulton wrote: I wasn't proposing to change anything. :) Breaking inheritance to avoid inheriting a bad cmp seems rather too tricky. (I assume there isn't a default comparison in Python 3, although I haven't checked.) I suppose that the BTree