[Zope-ZEO] ZEO Readme
Nuno Simoes
nuno.simoes@ruido-visual.pt
Tue, 26 Sep 2000 20:08:35 +0100
Hi.
I've spended some time around ZEO, trying to put two FileStorages
working together, one in read_only mode. Ok, some things on the README
file just don't help:
"
import ZODB.FileStorage
Storage=FileStorage('/stores/fs1.fs', read_only=1)
"
...should be...
"
import ZODB.FileStorage
Storage=ZODB.FileStorage.FileStorage('/stores/fs1.fs', read_only=1)
"
- It seems to be impossible to use the declaration of two FileStorages
in one *.py file. You have to write to *.py files, one for each *.fs,
like this:
[store.py]
import ZODB.FileStorage
News=ZODB.FileStorage.FileStorage('/usr/local/zope/Zope-2.2.2-linux2-x86-server/var/News.fs',read_only=1)
[data.py]
import ZODB.FileStorage
Dados=ZODB.FileStorage.FileStorage('/usr/local/zope/Zope-2.2.2-linux2-x86-server/var/Data.fs')
$./start_zeo -SDados=./data:Dados -SNews=./store:News
[custom_zodb.py]
import ZEO.ClientStorage
Storage=ZEO.ClientStorage.ClientStorage(('192.168.0.128',2000),name="ZEO
Storage", storage='News')
$./start
Can anybody confirm this?
TIA
Nuno Simões,
Ruido Visual,