Re: [ZODB-Dev] Strange lookup error...

2009-10-23 Thread B. B.
On Thu, Oct 22, 2009 at 2:33 PM, Jim Fulton  wrote:

> On Sat, Oct 17, 2009 at 12:49 PM, B. B.  wrote:
> ...
> > The precedure is used to work fine, I have tried with different version
> of
> > zodb3 from pypi,
> >
> > #bad zodb3 = 3.9.2
> > #bad zodb3 = 3.9.1
> > #bad zodb3 = 3.9.0
> > #bad zodb3 = 3.9.0c2
> > #ok zodb3 = 3.9.0c1
> > #ok zodb3 = 3.9.0b5
> > #ok zodb3 = 3.9.0a12
>
> ...
>
> > If it is an interesting bug to catch ( for me it is very interesting :-)
> ),
> > I can test versions or patches.
>
> I found and fixed 2 BTree bugs introduced in 3.9.0c2 that probably
> account for the problem you're seeing. Could you test against the 3.9
> branch:
>
>  svn://svn.zope.org/repos/main/ZODB/branches/3.9
>
> and let me know if the fix corrects the problem you're seeing?
>
> Jim
>
> --
> Jim Fulton
>

#ok zodb3 = 3.9.3
#bad zodb3 = 3.9.2
#bad zodb3 = 3.9.1
#bad zodb3 = 3.9.0
#bad zodb3 = 3.9.0c2
#ok zodb3 = 3.9.0c1
#ok zodb3 = 3.9.0b5
#ok zodb3 = 3.9.0a12

Checked against the 3.9.3 version from PyPi.

The problem is not to be observed anymore, it works fine!!!


Thanks

\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


Re: [ZODB-Dev] Strange lookup error...

2009-10-22 Thread Jim Fulton
On Sat, Oct 17, 2009 at 12:49 PM, B. B.  wrote:
...
> The precedure is used to work fine, I have tried with different version of
> zodb3 from pypi,
>
> #bad zodb3 = 3.9.2
> #bad zodb3 = 3.9.1
> #bad zodb3 = 3.9.0
> #bad zodb3 = 3.9.0c2
> #ok zodb3 = 3.9.0c1
> #ok zodb3 = 3.9.0b5
> #ok zodb3 = 3.9.0a12

...

> If it is an interesting bug to catch ( for me it is very interesting :-) ),
> I can test versions or patches.

I found and fixed 2 BTree bugs introduced in 3.9.0c2 that probably
account for the problem you're seeing. Could you test against the 3.9
branch:

  svn://svn.zope.org/repos/main/ZODB/branches/3.9

and let me know if the fix corrects the problem you're seeing?

Jim

-- 
Jim Fulton
___
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


Re: [ZODB-Dev] Strange lookup error...

2009-10-20 Thread B. B.
On Sun, Oct 18, 2009 at 9:55 AM, Jim Fulton  wrote:

> On Sat, Oct 17, 2009 at 12:49 PM, B. B.  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  > '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]: 

In [13]: type( sc )
Out[13]: 

In [14]: sc.__class__
Out[14]: 


/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


Re: [ZODB-Dev] Strange lookup error...

2009-10-18 Thread Jim Fulton
On Sat, Oct 17, 2009 at 12:49 PM, B. B.  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  '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?

Jim

-- 
Jim Fulton
___
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