Commit c5a04718 authored by Jim Fulton's avatar Jim Fulton

Added more about cPickle and fixed a couple of examples.

parent ebaafa3a
...@@ -10,9 +10,18 @@ Zope Enterprize Option, ZEO 0.2 ...@@ -10,9 +10,18 @@ Zope Enterprize Option, ZEO 0.2
cd lib/python cd lib/python
ln -s ../../ZServer . ln -s ../../ZServer .
Finally, you need to link the cPickle extension from your lib/python
directory into your ZEO directory::
cd lib/python/ZEO
ln -s ../cPickle.so .
This is necessary because ZEO uses a (relatively) new
cPickle feature that wasn't included in Python 1.5.2.
To start the storage server, go to your Zope install directory and:: To start the storage server, go to your Zope install directory and::
lib/python/ZEO/start.py -p port_number python lib/python/ZEO/start.py -p port_number
(Run start without arguments to see options.) (Run start without arguments to see options.)
...@@ -22,7 +31,7 @@ Zope Enterprize Option, ZEO 0.2 ...@@ -22,7 +31,7 @@ Zope Enterprize Option, ZEO 0.2
If the server and client *are* on the same machine, then you can use If the server and client *are* on the same machine, then you can use
a Unix domain socket:: a Unix domain socket::
lib/python/ZEO/start.py -U filename python lib/python/ZEO/start.py -U filename
To get Zope to use the server, create a custom_zodb module, To get Zope to use the server, create a custom_zodb module,
custom_zodb.py, in your Zope install directory, so that Zope uses a custom_zodb.py, in your Zope install directory, so that Zope uses a
...@@ -38,7 +47,6 @@ Zope Enterprize Option, ZEO 0.2 ...@@ -38,7 +47,6 @@ Zope Enterprize Option, ZEO 0.2
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)
......
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