[ZODB-Dev] [ zodb-Bugs-502852 ] doc bug: section 2.4 incorrect code
SourceForge.net
noreply@sourceforge.net
Fri, 17 Jan 2003 11:45:27 -0800
Bugs item #502852, was opened at 2002-01-12 23:39
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=502852&group_id=15628
Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Richard Jones (richard)
Assigned to: Jeremy Hylton (jhylton)
Summary: doc bug: section 2.4 incorrect code
Initial Comment:
The code in section 2.4 "Writing a Persistent Class"
has some examples. Specifically, it uses the BTree
class - which doesn't exist. The code needs to be
changed to:
from BTrees import OOBTree
self.dbroot['userdb'] = OOBTree.OOBTree()
for it to work out of the box. I believe OOBtree is
the correct one to use in this case, but I haven't
had a chance to actually investigate it...
----------------------------------------------------------------------
>Comment By: Jeremy Hylton (jhylton)
Date: 2003-01-17 19:45
Message:
Logged In: YES
user_id=31392
There's now a whole section on the BTrees package. It's
slim, but it is correct.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2002-11-09 22:33
Message:
Logged In: YES
user_id=6380
Looks like this is still wrong. Assigning to Jeremy. (The
file is Doc/prog-zodb.tex.)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=115628&aid=502852&group_id=15628