On Sun, Oct 18, 2009 at 9:55 AM, Jim Fulton <j...@zope.com> wrote:
> On Sat, Oct 17, 2009 at 12:49 PM, B. B. <thebb...@gmail.com> wrote:
> > Background:
> > -----------------------
> > After update of
> > - an application, with some modules being renamed
> > - python from 2.5 to 2.6
> > - zodb
> > an updatescript is called to refresh the broken objects.
> > The objects are stored in dict of type <class
> > 'zope.container.contained.ContainedProxy'> with a simple unicode key to
> > object mapping.
> ContainedProxy isn't a container type. It is a generic proxy that ads
> __parent__ and __named__ attributes. Does it actually proxy a Python
> dict? What does foo.__class__ return where foo is one of these
No, it is a persistent container. The prompt say it s OOBTree...
In : sc
Out: <BTrees.OOBTree.OOBTree object at 0x12bd250>
In : type( sc )
Out: <class 'zope.container.contained.ContainedProxy'>
In : sc.__class__
Out: <type 'BTrees.OOBTree.OOBTree'>
For more information about ZODB, see the ZODB Wiki:
ZODB-Dev mailing list - ZODB-Dev@zope.org