[ZODB-Dev] Adopting ZODB

Chris S chrisspen at gmail.com
Thu Jul 13 16:51:07 EDT 2006


On 7/13/06, David Binger <dbinger at mems-exchange.org> wrote:
>
> On Jul 13, 2006, at 3:55 PM, Chris S wrote:
>
> > Uh, calling root.get(name, obj) assigns obj to the root if the name is
> > not yet defined. And of course I'm not assigning to any other
> > Persistent instances, since the point of the code was to show that
> > Zope can't persist objects that don't inherit the Persistent class.
> >
> > Chris
>
> Okay, sorry. I thought the get method of the root would
> work like it does on a regular dict.

No, I apologize, you were right. As Terry mentioned, I meant
setdefault. But of course that still doesn't save changes made inside
User instances, unless I set _p_changed to the root.

Chris


More information about the ZODB-Dev mailing list