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
> the
> > 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
> containers?
>
>
No, it is a persistent container. The prompt say it s OOBTree...

In [12]: sc
Out[12]: <BTrees.OOBTree.OOBTree object at 0x12bd250>

In [13]: type( sc )
Out[13]: <class 'zope.container.contained.ContainedProxy'>

In [14]: sc.__class__
Out[14]: <type 'BTrees.OOBTree.OOBTree'>


/Brian
_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to