On 7/13/06, David Binger <[EMAIL PROTECTED]> 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 _______________________________________________ For more information about ZODB, see the ZODB Wiki: http://www.zope.org/Wikis/ZODB/ ZODB-Dev mailing list - ZODB-Dev@zope.org http://mail.zope.org/mailman/listinfo/zodb-dev