[Zope-ZEO] MountPoint example?
Andrew Kuchling
akuchlin@mems-exchange.org
Wed, 12 Jul 2000 15:15:19 -0400
Are there any simple examples of using a MountPoint instance? Looking
at the MountedFileStorage code doesn't clarify things for me much.
Currently I'm trying to get this to work:
# Create mount point
from ZODB import Mount
mp = Mount.MountPoint('',
'ZODB.FileStorage /tmp/test2.fs',
classDefsFromRoot = 1)
root1['SESSIONS'] = mp
...
o = Object()
...
root1['SESSIONS']['obj'] = o
The final line doesn't work; what should it look like? Are the
instantiation of the MountPoint instance and placing it within the
ZODB root 'root1' correct?
--amk