Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus Läll wrote: > I think I know now -- objects compare identical and equal only if they are > in the same container object. (Check the code below) > > I don't mean to be negative, but why can't ZODB be like a big RAM? Like > when i store an object

Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Christian Theune
Hi, On Fri, 2008-10-03 at 15:57 +0300, Markus Läll wrote: > I think I know now -- objects compare identical and equal only if they are > in the same container object. (Check the code below) > > I don't mean to be negative, but why can't ZODB be like a big RAM? Like > when i store an object to mul

Re: [ZODB-Dev] Object uniqueness

2008-10-03 Thread Markus Läll
I think I know now -- objects compare identical and equal only if they are in the same container object. (Check the code below) I don't mean to be negative, but why can't ZODB be like a big RAM? Like when i store an object to multiple places on the same DB, then it would actually be the same in ea

[ZODB-Dev] Object uniqueness

2008-10-03 Thread Markus Läll
Hi! In which scope does zodb preserve object uniqueness? The problem I'm having is I have Person-objects in two places, in a set of persons (root[Person], which is an OOSet) and in name-index (root[(Name, Person)], which is a OOBTree). Now if I find people by name from the name index, they seem