[ZODB-Dev] Re: ZODB Import Help

Jeremy Hylton jeremy@zope.com
Tue, 29 Jan 2002 07:25:34 -0500


>>>>> "BAW" == Barry A Warsaw <barry@zope.com> writes:
>>>>> "KA" == Kevin Altis <altis@semi-retired.com> writes:

  KA> But how would the script and imports have to change to access
  KA> the ZODB database and support classes for a Zope installation?
  KA> Is that one of the issues that hasn't been resolved yet?

  | import ZODB
  | from Persistence import Persistent
  | from ZODB.PersistentList import PersistentList
  | from ZODB import DB, FileStorage
  | import BTrees
  | from BTrees import OOBTree

  BAW> Is it just a matter of twiddling your PYTHONPATH to get a
  BAW> different version of these modules?

That's correct.  I've tested ZEO 1.0 with StandaloneZODB and Zope 2.3
on up.  The only difference is the PYTHONPATH.  If you've got a
working Zope install, you need to put its lib/python directory on your
path.

Jeremy