[ZODB-Dev] Re: BTrees persistence problem

Tres Seaver tseaver at palladion.com
Thu Jun 29 14:16:56 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Florent Guillaume wrote:
> Hi,
> 
> Could anyone confirm that this shows a BTree bug:
> 
> from BTrees.OOBTree import OOBTree
> class B(OOBTree):
>   def __init__(self):
>     OOBTree.__init__(self)
>     print self._p_changed
>     self.foo = 4
>     print self.foo
>     print self._p_changed
>     self._p_changed = True
>     print self._p_changed
> B()
> 
> This prints:
> False
> 4
> False
> False
> 
> Where I would expect True for the last two at least.

The 'setattr' majyk only works for objects which are already in a jar.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEpBkY+gerLs4ltQ4RAo8IAKCz2yB9eYMYfVCFMhKMBjLAoW3DlwCghjlp
6uPvj8QYrdfew+f4w29aS1E=
=0oQz
-----END PGP SIGNATURE-----



More information about the ZODB-Dev mailing list