[Zope] Help with ZODB Howto?

Sean Holdsworth sh@onyx.net
Tue, 23 Nov 1999 18:12:23 -0000 (GMT)


Hi All!

I've just joined the Zope list after about a fortnight of reading documentation
and experimenting with what Zope can do. I've done a fair bit of CGI
programming using Python as the scripting language, so Zope seems a good choice
for me to work with. My first impessions, both of Zope and the resources
available to support it are very favorable but I think its now time to ask
about a few things that I'm having problems with.

Firstly I want to reproduce the functionality of a simple database that I have
written in Python using the shelve module. To this end I've read up on ZODB and
looked at the existing Howto. For experimenting, using the file storage method
is fine. I'm assuming that I can test the code in the Howto running it outside
of the Zope environment as standalone Python (after correcting the closing
bracket typo and adding some wrapper code of course). Unfortunately this fails
miserably in a way I would expect if this Howto was targeted at a previous
version of ZODB; I'm running version 2.0.1 on Linux. Any clues here or similar
first steps examples of use of ZODB people can recommend? 

On a similar track, I very much like the object database technology supporting
the Zope framework and would like to play with putting a very simple key:value
mapping object into the *same* database that holds my Folders and DTML
documents. Are then any examples of code doing this I can look at, or
alternatively have I completely lost the plot in even wanting to try this? 

Regards, Sean
-- 
Sean Holdsworth         | Work: sh@onyx.net          | Zetland Buildings
Senior Network Engineer | Home: sh@hob.cx            | Exchange Square
Onyx Internet Ltd.      | Tel:  +44 (0)1642 216200   | Middlesbrough
http://www.onyx.net     | Fax:  +44 (0)1642 216201   | TS1 1DE