[ZODB-Dev] Strange lookup error...

B. B. thebbzoo at gmail.com
Tue Oct 20 18:07:58 EDT 2009


On Sun, Oct 18, 2009 at 9:55 AM, Jim Fulton <jim at zope.com> wrote:

> On Sat, Oct 17, 2009 at 12:49 PM, B. B. <thebbzoo at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zodb-dev/attachments/20091020/d903b499/attachment.html 


More information about the ZODB-Dev mailing list