Commit 3b91c7ec authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

gdbm is only required if ERP5_BT5_CACHE is enabled.

(in Mandriva, gdbm is included in the python2.4 package, but in Debian it is a different package named python-gdbm.)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31721 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a67d6661
...@@ -79,13 +79,13 @@ from difflib import unified_diff ...@@ -79,13 +79,13 @@ from difflib import unified_diff
import posixpath import posixpath
import transaction import transaction
import gdbm
import threading import threading
CACHE_DATABASE_PATH = None CACHE_DATABASE_PATH = None
try: try:
if int(os.getenv('ERP5_BT5_CACHE', 0)): if int(os.getenv('ERP5_BT5_CACHE', 0)):
from App.config import getConfiguration from App.config import getConfiguration
import gdbm
instancehome = getConfiguration().instancehome instancehome = getConfiguration().instancehome
CACHE_DATABASE_PATH = os.path.join(instancehome, 'bt5cache.db') CACHE_DATABASE_PATH = os.path.join(instancehome, 'bt5cache.db')
except TypeError: except TypeError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment