[ZODB-Dev] ZEO serves Ape FS but ZEO client cannot connect

Choo Zhi Min zhimin at iss.nus.edu.sg
Thu Nov 20 23:19:38 EST 2003


Hi,

I used ZEO to serve Ape FS (filesystem). But ZEO client failed to connect 
because:
     File C:\Webservices\zope262py23\Products\Ape\lib\apelib\zodb3\db.py, 
line 122, in __init__
     AttributeError: 'ClientStorage' object has no attribute 'setScanner'

My dbtab.conf is:

[Storage: FS]
type=ClientStorage
addr=zeo://localhost:9001
storage=fs

[Database: FS]
class=apelib.zodb3.db.ApeDB
factory=apelib.zope2.mapper.createFSMapper
basepath=/var
cache_size=0
mount_paths=/Storages/FS


To do a quick fix, I add "scan_interval=0" to dbtab.conf so that the 
section [Database: FS] looks like:
[Database: FS]
class=apelib.zodb3.db.ApeDB
scan_interval=0
factory=apelib.zope2.mapper.createFSMapper
basepath=/var
cache_size=0
mount_paths=/Storages/FS


However, changes in the file system directory are not reflected in ZMI.

Is this because the scanner is turned off?
Will ClientStorage be scanner-enabled in future release?
Any fix to enable the scanner for ClientStorage at the moment?


My config
---------
Python:	2.3.2 (win32)
Zope:		2.6.2 (built from src)
ZEO:		2.1b2 (from cvs.zope.org)
Ape:		0.7.1 (from cvs.zope.org)
DBTab:	1.2.1 (from cvs.zope.org)


StorageConfig.py - to be read by ZEO/start.py to serve fs_storage as fs to 
dbtab.conf
----------------
## file system storage
envpath = os.path.join(CLIENT_HOME, 'Storages', 'FS')
dm, conns = createFSMapper(envpath)
assert len(conns) == 1
resource = StaticResource(dm)
fs_storage = ApeStorage(resource, conns)



Thanks in advance!
Regards,
Zhi Min




More information about the ZODB-Dev mailing list