From d811c6b656dd43829b7bfa76e61af6adea1793d4 Mon Sep 17 00:00:00 2001 From: sqlcoder Date: Sun, 26 Apr 2009 21:38:04 +0100 Subject: [PATCH] add rollback to release locks when db reads are finished --- pyfpdb/fpdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfpdb/fpdb.py b/pyfpdb/fpdb.py index 49b3ad82..168a75d8 100755 --- a/pyfpdb/fpdb.py +++ b/pyfpdb/fpdb.py @@ -287,6 +287,7 @@ class fpdb: # Database connected to successfully, load queries to pass on to other classes self.querydict = FpdbSQLQueries.FpdbSQLQueries(self.db.get_backend_name()) + self.db.db.rollback() #end def load_profile def not_implemented(self): @@ -296,7 +297,7 @@ class fpdb: def obtain_global_lock(self): print "todo: implement obtain_global_lock (users: pls ignore this)" #end def obtain_global_lock - + def quit(self, widget, data): print "Quitting normally" #check if current settings differ from profile, if so offer to save or abort @@ -341,7 +342,6 @@ class fpdb: ps_tab=new_ps_thread.get_vbox() self.add_and_display_tab(ps_tab, "Positional Stats") - def tab_main_help(self, widget, data): """Displays a tab with the main fpdb help screen""" #print "start of tab_main_help"