2008-03-02 Gary Burton <gary.burton@zen.co.uk>

* src/GrampsCfg.py:
	* src/Config/_GrampsConfigKeys.py:
	* src/gen/db/dbdir.py:
	* src/DbManager.py:
	* src/DbLoader.py: Gramps databases run with transactions enabled. The
	option to switch off transactions is now removed. The "transactions" and 
	"port_warn" settings are ignored in the config file.



svn: r10169
This commit is contained in:
Gary Burton
2008-03-02 21:34:51 +00:00
parent d78dacb08b
commit 34cf711351
6 changed files with 72 additions and 178 deletions

View File

@@ -143,7 +143,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
buttons=(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE)),
None, _('Preferences'), None)
panel = gtk.Notebook()
self.original = Config.get(Config.TRANSACTIONS)
self.window.vbox.add(panel)
self.window.connect('response', self.done)
panel.append_page(self.add_behavior_panel(),
@@ -166,8 +165,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
self.show()
def done(self, obj, value):
if not self.original and Config.get(Config.TRANSACTIONS):
Config.set(Config.PORT_WARN, True)
self.close()
def add_researcher_panel(self):
@@ -758,7 +755,7 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
return table
def add_database_panel(self):
table = gtk.Table(3, 8)
table = gtk.Table(2, 8)
table.set_border_width(12)
table.set_col_spacings(6)
table.set_row_spacings(6)
@@ -768,8 +765,6 @@ class GrampsPreferences(ManagedWindow.ManagedWindow):
1, Config.ENABLE_AUTOBACKUP)
self.add_checkbox(table, _('Automatically load last database'),
2, Config.AUTOLOAD)
self.add_checkbox(table, _('Enable database transactions'),
3, Config.TRANSACTIONS)
return table
def add_checkbox(self, table, label, index, constant):