[ZODB-Dev] Problem with documentation and distribution files.
Estaban
estaban@fastmail.fm
Fri, 5 Apr 2002 16:04:51 -0600
AJ,
Thanks for the info. The problem is that I am not using ZOPE. I am just using
raw python and the ZODB Standalone 1.0, and the example included in the docs
uses BTree which is a dependency on ZOPE.
I am going to try out the IOBTree stuff that MT sent below.
BUT in the mean time the example that I found that DID work was located in
the "employees example" @
http://www.zope.org/Documentation/Articles/ZODB1
Which contains no ZOPE specific dependencies, and is a great introduction and
working code that only requires
python
ZODBStandalone 1.0
Thank you both for your replies!!
-Estaban
On Friday 05 April 2002 07:58 am, Andreas Jung wrote:
> BTree smeels like you are using somehow an older version of Zope
> or whatever. The up-to-date BTrees are in the BTrees package. Maybe
> the best documentation for BTrees is available from:
> http://www.zope.org/Members/ajung
>
> -aj
>
> ----- Original Message -----
> From: "Michael Twomey" <michael.twomey@sun.com>
> To: <estaban@fastmail.fm>
> Cc: <zodb-dev@zope.org>
> Sent: Friday, April 05, 2002 08:48
> Subject: Re: [ZODB-Dev] Problem with documentation and distribution files.
>
> > Hi,
> >
> > The BTree module in ZODB seems to have been replaced with the BTrees
> > module which contains different types of btrees (the two letters at the
> > beginning show how the key -> data is mapped, e.g. OOBTree is Object ->
> > Object whereas IOBTree is int -> object). To get that example working
> > simply change the offending lines to:
> >
> > # Ensure that a 'userdb' key is present
> > if not dbroot.has_key('userdb'):
> > from BTrees.OOBTree import OOBTree
> > dbroot['userdb'] = OOBTree()
> >
> > The above should work (I haven't tested it but I use similar stuff).
> >
> > mick
> >
> > Estaban wrote:
> > > Hey,
> > >
> > > Can you help me?
> > >
> > > The Zope standalone system seems to be working on my system now,
> > > but the only example file clearly uses BTree which is NOT part of the
> > > standard python distribution OR the standalone ZODB distribution:
> > >
> > > # Ensure that a 'userdb' key is present
> > > if not dbroot.has_key('userdb'):
> > > import BTree
> > > dbroot['userdb'] = BTree.BTree()
> > >
> > > userdb = dbroot['userdb']
> > >
> > > Can you help me out here? There are other BTREES in the standard python
> > > distribution, but no BTree. with a BTree() thats for sure.
> > >
> > > If you can help me, this would be a good thing to update in the docs.
> > >
> > > Thanks!
> > > Estaban
> > >
> > >
> > > _______________________________________________
> > > For more information about ZODB, see the ZODB Wiki:
> > > http://www.zope.org/Wikis/ZODB/
> > >
> > > ZODB-Dev mailing list - ZODB-Dev@zope.org
> > > http://lists.zope.org/mailman/listinfo/zodb-dev
> >
> > _______________________________________________
> > For more information about ZODB, see the ZODB Wiki:
> > http://www.zope.org/Wikis/ZODB/
> >
> > ZODB-Dev mailing list - ZODB-Dev@zope.org
> > http://lists.zope.org/mailman/listinfo/zodb-dev
--
"People do not want the truth,
they want P.T. Barnum"
- Estaban Hill