More ZEO/ZODB issues

Discussion in 'Python' started by drs, Jul 12, 2003.

  1. drs

    drs Guest

    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
     
    drs, Jul 12, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. drs

    ZEO and COM

    drs, Jul 11, 2003, in forum: Python
    Replies:
    0
    Views:
    379
  2. Almad

    IndexedCatalog and ZEO

    Almad, Mar 6, 2005, in forum: Python
    Replies:
    4
    Views:
    384
    Almad
    Mar 7, 2005
  3. Paul Boots
    Replies:
    0
    Views:
    337
    Paul Boots
    Jun 21, 2005
  4. Paul Boots
    Replies:
    0
    Views:
    282
    Paul Boots
    Jun 21, 2005
  5. Almad
    Replies:
    0
    Views:
    297
    Almad
    Jun 24, 2005
Loading...

Share This Page