[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Maintaining
Zope
webmaster at zope.org
webmaster at zope.org
Thu May 27 18:56:23 EDT 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/MaintainingZope.stx#3-19
---------------
To change this setting, create a file called "custom_zodb.py" in
your Zope installation directory. In this file, put the
following code::
import ZODB.FileStorage
import ZODB.DB
filename = os.path.join(INSTANCE_HOME, 'var', 'Data.fs')
Storage = ZODB.FileStorage.FileStorage(filename)
DB = ZODB.DB(Storage, pool_size=25, cache_size=2000)
% Anonymous User - May 27, 2004 6:56 pm:
You must also import the "os" module for this to work, i.e.,
import os
import ZODB.FileStorage
import ZODB.DB
filename = os.path.join(INSTANCE_HOME, 'var', 'Data.fs')
Storage = ZODB.FileStorage.FileStorage(filename)
DB = ZODB.DB(Storage, pool_size=25, cache_size=2000)
More information about the ZDP
mailing list