Commit 6f888771 authored by Aurel's avatar Aurel

add installation step


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@102 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent b9a6f71e
......@@ -18,3 +18,37 @@ TODO
a handler, otherwise too tricky to exchange a handler with another
- Replication.
Installation
1. In zope:
a. Copy neo directory to /path/to/your/zope/lib/python
b. Edit your zope.conf, remove the `zodb_zb` section that refers to
FileStorage, and replace it with :
%import neo
<zodb_db main>
# Main FileStorage database
<NEOStorage>
master_addr "127.0.0.1"
master_port 10010
name "main"
</NEOStorage>
mount-point /
</zodb_db>
c. Start zope
2. In a python script:
a. Set your PYTHONPATH in order to be able to import Zope lib:
$ export PYTHONPATH=/path/to/your/zope/lib/python:$PYTHONPATH
b. Just create the storage object and play with it:
from neo.client.NEOStorare import NEOStorage
s = NEOStorage(master_addr="127.0.0.1", master_port=10010, name="main")
...
\ No newline at end of file
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