README 1.14 KB
Newer Older
Yoshinori Okuji's avatar
Yoshinori Okuji committed
1
This is the second prototype of NEO. The design is described in:
Yoshinori Okuji's avatar
Yoshinori Okuji committed
2

Yoshinori Okuji's avatar
Yoshinori Okuji committed
3
    http://www.nexedi.org/workspaces/neo
Yoshinori Okuji's avatar
Yoshinori Okuji committed
4

5 6 7 8 9 10 11 12 13 14
Requirements

    - Python 2.4 or later

    - ctypes http://python.net/crew/theller/ctypes/

    - MySQLdb http://sourceforge.net/projects/mysql-python

    - Zope 2.8 or later

Aurel's avatar
Aurel committed
15 16 17 18 19 20 21 22 23 24 25 26 27
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>
28 29
                master_nodes 127.0.0.1:10010 127.0.0.1:10011
                name main
30
                connector SocketConnector
Aurel's avatar
Aurel committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44
          </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:

45 46 47
   from neo.client.Storare import Storage
       s = Storage(master_nodes="127.0.0.1:10010", name="main",
               connector="SocketConnector")
48
   ...