Commit 14065cd9 authored by Ken Manheimer's avatar Ken Manheimer

Sundry minor elaborations of the text, mostly to test the cvs mirror

and notification propagation, but i got carried away and tried to fill
in some pieces otherwise slightly mysterious to me...
parent bd1e5a99
...@@ -41,22 +41,27 @@ Zope Enterprize Objects, ZEO 0.2 ...@@ -41,22 +41,27 @@ Zope Enterprize Objects, ZEO 0.2
import ZEO.ClientStorage import ZEO.ClientStorage
Storage=ZEO.ClientStorage.ClientStorage(('',port_number)) Storage=ZEO.ClientStorage.ClientStorage(('',port_number))
You can specify a host name (rather than '') if you want. (See the custom_zodb.py.dist in the same ZEO directory as this
The port number is, of course, the port number used to start the README for an example.)
storage server. The async switch tells the client to switch
itself to async mode (if and) when the asyncore main loop is called. You can specify a host name (rather than '') if you want. The port
number is, of course, the port number used to start the storage
server. The ClientStorage 'async' switch tells the client to switch
itself to async mode (if and) when the medusa asyncore main loop is
called.
You can also give the name of a Unix domain socket file:: You can also give the name of a Unix domain socket file::
import ZEO.ClientStorage import ZEO.ClientStorage
Storage=ZEO.ClientStorage.ClientStorage(filename) Storage=ZEO.ClientStorage.ClientStorage(filename)
If you want a persistent client cache, you need to define the If you want a persistent client cache which retains cache contents
environment variable, ZEO_CLIENT to a unique name for the across ClientStorage restarts, you need to define the environment
client. This is needed so that unique cache name files can be variable, ZEO_CLIENT, to a unique name for the client. This is
computed. Otherwise, the client cache is stored in temporary files. needed so that unique cache name files can be computed. Otherwise,
For example, to start two Zope processes with unique caches, use the client cache is stored in temporary files which are removed when
something like: the ClientStorage shuts down. For example, to start two Zope
processes with unique caches, use something like:
python z2.py -P8700 ZEO_CLIENT=8700 python z2.py -P8700 ZEO_CLIENT=8700
python z2.py -P8800 ZEO_CLIENT=8800 python z2.py -P8800 ZEO_CLIENT=8800
...@@ -176,9 +181,9 @@ Zope Enterprize Objects, ZEO 0.2 ...@@ -176,9 +181,9 @@ Zope Enterprize Objects, ZEO 0.2
Known dependencies: Known dependencies:
- Shared must be in the Python path. This is due to a lame - The Zope lib/python/Shared directory must be in the Python
dependency on some Zope XML facilities used by ZODB for XML path. This is due to a lame dependency on some Zope XML
export and import. facilities used by ZODB for XML export and import.
- ZServer should be in the Python path, or you should copy the - ZServer should be in the Python path, or you should copy the
version of asyncore.py from ZServer (from Zope 2.2 or CVS) to version of asyncore.py from ZServer (from Zope 2.2 or CVS) to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment