BackTalk to Document The Zope Book (2.6 Edition)/Maintaining Zope
[email protected] Thu, 27 May 2004 18:56:23 -0400
| Newsgroups | gmane.comp.web.zope.zdp |
|---|---|
| Message-ID | <[email protected]> |
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)
_______________________________________________
ZDP maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zdp