[ZODB-Dev] ZEO testing doesn't work
Luis Machado
luis.machado at mandioca.tzo.com
Mon May 19 06:59:41 EDT 2003
I have got ZEO up and running using the following command:
python ZEO/start.py -p1975 -hgalileo -D -U /tmp/zeosocket
but when I want to connect to the ZEO server using the following piece
of code, it doesn't work.
from ZEO import ClientStorage
from ZODB import DB
# Change next line to connect to your ZEO server
addr = ('galileo', 1975)
storage = ClientStorage.ClientStorage(addr)
db = DB(storage)
conn = db.open()
root = conn.root()
# Store some things in the root
root['list'] = ['a', 'b', 1.0, 3]
root['dict'] = {'a':1, 'b':4}
# Commit the transaction
get_transaction().commit()
conn = db.close()
The program never comes back from db = DB(storage)
I can't see any message from ZEO either, even if the debugger is on.
Any help will be appreciated.
Thanks,
Luis
More information about the ZODB-Dev
mailing list