Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > More ZEO/ZODB issues

Reply
Thread Tools

More ZEO/ZODB issues

 
 
drs
Guest
Posts: n/a
 
      07-12-2003
I don't seem to be getting any bites on the earlier post ...

so here is my problem in a nutshell. I started a ZEO server on one computer
(\\camus) using

C:\>python C:\Python22\Lib\site-packages\ZEO\start.py -p 9000 C:\db\tmp.fs

that is fine

on another computer I typed the following from a python prompt:
>>> from ZEO import ClientStorage
>>> from ZODB import DB
>>> addr = ('camus', 9000)
>>> storage = ClientStorage.ClientStorage(addr)
>>> db = DB(storage)
>>> conn = db.open()
>>> d = conn.root()


I went to a third computer and did the same.

from either of the clients, I can manipulate d by doing
>>> d[key] = value

but the other client can't see the change. I have also tried using
>>> get_transaction().begin()
>>> d['0'] = 0
>>> get_transaction().commit()


and
>>> storage.sync()


but the other client still does not see changes. If, however, the other
client does
>>> get_transaction().begin()
>>> d[key] = value
>>> get_transaction().commit()

it will throw an error, but d will contain the changes from the first
client.

Obviously I am not getting something. The only ZEO examples I can find use
BTrees which is not what I want. So, can someone show me how to use a ZEO
server as a simple dictionary?

Thanks,

-doug



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kamaelia 0.4.0 RELEASED - Faster! More Tools! More Examples! More Docs! ;-) Michael Python 4 06-26-2006 08:00 AM
With a Ruby Yell: more, more more! Robert Klemme Ruby 5 09-29-2005 06:37 AM
Re: Windows XP Pro clean install issues, SP2 issues too... pcbutts1 Computer Support 0 07-06-2005 04:58 PM
Re: Windows XP Pro clean install issues, SP2 issues too... pcbutts1 Computer Support 0 07-06-2005 04:52 PM
SNMP Issues in Cisco Routers; Vulnerability Issues in TCP =?iso-8859-1?Q?Frisbee=AE?= MCSE 0 04-21-2004 03:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57