Enable Sqlite backend for all users
This commit is contained in:
parent
00715fc530
commit
f75a8f9497
@ -399,11 +399,10 @@ def show_settings():
|
||||
print(' version : %s' % bsddb_str)
|
||||
print(' db version : %s' % bsddb_db_str)
|
||||
print(' location : %s' % bsddb_location_str)
|
||||
if __debug__:
|
||||
print(' sqlite3 :')
|
||||
print(' version : %s' % sqlite3_version_str)
|
||||
print(' py version : %s' % sqlite3_py_version_str)
|
||||
print(' location : %s' % sqlite3_location_str)
|
||||
print(' sqlite3 :')
|
||||
print(' version : %s' % sqlite3_version_str)
|
||||
print(' py version : %s' % sqlite3_py_version_str)
|
||||
print(' location : %s' % sqlite3_location_str)
|
||||
print('')
|
||||
|
||||
def run():
|
||||
|
@ -130,10 +130,8 @@ class GrampsAboutDialog(Gtk.AboutDialog):
|
||||
if hasattr(os, "uname"):
|
||||
distro = "\n" + _("Distribution: %s") % ellipses(os.uname()[2])
|
||||
|
||||
sqlite = ''
|
||||
if __debug__:
|
||||
sqlite = "sqlite" + COLON + " %s (%s)\n" % (sqlite3_version_str,
|
||||
sqlite3_py_version_str)
|
||||
sqlite = "sqlite" + COLON + " %s (%s)\n" % (sqlite3_version_str,
|
||||
sqlite3_py_version_str)
|
||||
|
||||
return (("\n\n" +
|
||||
"GRAMPS" + COLON + " %s \n" +
|
||||
|
@ -1463,23 +1463,22 @@ class GrampsPreferences(ConfigureDialog):
|
||||
|
||||
current_line = 0
|
||||
|
||||
if __debug__:
|
||||
lwidget = BasicLabel(_("%s: ") % _('Database backend'))
|
||||
grid.attach(lwidget, 1, current_line, 1, 1)
|
||||
obox = self.__create_backend_combo()
|
||||
grid.attach(obox, 2, current_line, 1, 1)
|
||||
current_line += 1
|
||||
lwidget = BasicLabel(_("%s: ") % _('Database backend'))
|
||||
grid.attach(lwidget, 1, current_line, 1, 1)
|
||||
obox = self.__create_backend_combo()
|
||||
grid.attach(obox, 2, current_line, 1, 1)
|
||||
current_line += 1
|
||||
|
||||
self.connection_widgets = []
|
||||
entry = self.add_entry(grid, _('Host'), current_line,
|
||||
'database.host', col_attach=1)
|
||||
self.connection_widgets.append(entry)
|
||||
current_line += 1
|
||||
entry = self.add_entry(grid, _('Port'), current_line,
|
||||
'database.port', col_attach=1)
|
||||
self.connection_widgets.append(entry)
|
||||
current_line += 1
|
||||
self.set_connection_widgets(config.get('database.backend'))
|
||||
self.connection_widgets = []
|
||||
entry = self.add_entry(grid, _('Host'), current_line,
|
||||
'database.host', col_attach=1)
|
||||
self.connection_widgets.append(entry)
|
||||
current_line += 1
|
||||
entry = self.add_entry(grid, _('Port'), current_line,
|
||||
'database.port', col_attach=1)
|
||||
self.connection_widgets.append(entry)
|
||||
current_line += 1
|
||||
self.set_connection_widgets(config.get('database.backend'))
|
||||
|
||||
self.dbpath_entry = Gtk.Entry()
|
||||
self.add_path_box(grid,
|
||||
|
@ -285,9 +285,6 @@ class DbManager(CLIDbManager, ManagedWindow):
|
||||
# Get the current selection
|
||||
store, node = selection.get_selected()
|
||||
|
||||
if not __debug__:
|
||||
self.convert_btn.set_visible(False)
|
||||
|
||||
if not _RCS_FOUND: # it's not in Windows
|
||||
self.rcs_btn.set_visible(False)
|
||||
|
||||
|
@ -173,10 +173,8 @@ class ErrorReportAssistant(ManagedWindow, Gtk.Assistant):
|
||||
if hasattr(os, "uname"):
|
||||
distribution = "Distribution: %s\n" % os.uname()[2]
|
||||
|
||||
sqlite = ''
|
||||
if __debug__:
|
||||
sqlite = "sqlite version: %s (%s) \n" % (sqlite3_version_str,
|
||||
sqlite3_py_version_str)
|
||||
sqlite = "sqlite version: %s (%s) \n" % (sqlite3_version_str,
|
||||
sqlite3_py_version_str)
|
||||
|
||||
return "Gramps version: %s \n"\
|
||||
"Python version: %s \n"\
|
||||
|
Loading…
Reference in New Issue
Block a user