same as previous commit, allow bsddb3 use

svn: r16447
This commit is contained in:
Benny Malengier 2011-01-23 21:27:34 +00:00
parent b3beba53d8
commit 18bb7615c3

View File

@ -27,9 +27,11 @@
# python modules # python modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from bsddb import db as bsddb_db import config
from gen.ggettext import gettext as _ if config.get('preferences.use-bsddb3'):
from DdTargets import DdTargets from bsddb3 import db as bsddb_db
else:
from bsddb import db as bsddb_db
import cPickle as pickle import cPickle as pickle
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -45,6 +47,8 @@ log = logging.getLogger(".")
# GTK/Gnome modules # GTK/Gnome modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from gen.ggettext import gettext as _
from DdTargets import DdTargets
import gtk import gtk
from gtk import gdk from gtk import gdk
import pango import pango