[zopeorg-checkins] CVS: NZO_SiteLayout/var/ZEOStorage - Storage.py.in:1.1

Tres Seaver tseaver at zope.com
Mon Apr 29 17:53:20 EDT 2002


Update of /cvs-zopeorg/NZO_SiteLayout/var/ZEOStorage
In directory cvs.zope.org:/tmp/cvs-serv11094/var/ZEOStorage

Added Files:
	Storage.py.in 
Log Message:


 - Make added storages really work.


=== Added File NZO_SiteLayout/var/ZEOStorage/Storage.py.in ===
"""
    Create the storage for the Zope appserver.
"""
BASE_DIR = '<<BASE_DIR>>'

from ZopeCtl import ZEOCtl

ctl = ZEOCtl( None, BASE_DIR )
ctl._loadConfigFile(1)
storage_config = ctl._storage['Main']

import ZODB.FileStorage

DATA_FS_PATH = storage_config[1]
Main = ZODB.FileStorage.FileStorage( DATA_FS_PATH )






More information about the zopeorg-checkins mailing list