* src/GrampsDb/_GrampsGEDDB.py (close): Save after batch

transactions: #862.
	* src/GrampsDb/_GrampsXMLDB.py (close): Save after batch
	transactions: #862.


svn: r8629
This commit is contained in:
Alex Roitman 2007-06-23 01:24:42 +00:00
parent 7fb923ecd7
commit 16bb718be0
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,8 @@
2007-06-22 Alex Roitman <shura@phy.ucsf.edu>
* src/GrampsDb/_GrampsGEDDB.py (close): Save after batch transactions.
* src/GrampsDb/_GrampsXMLDB.py (close): Save after batch transactions.
* src/GrampsDb/_GrampsGEDDB.py (close): Save after batch
transactions: #862.
* src/GrampsDb/_GrampsXMLDB.py (close): Save after batch
transactions: #862.
2007-06-22 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_ReportDialog.py: Still let REAL exceptions pass through.

View File

@ -53,6 +53,7 @@ class GrampsGEDDB(GrampsInMemDB):
self.bookmarks = GrampsDbBookmarks(self.metadata.get('bookmarks',[]))
self.db_is_open = True
self.abort_possible = True
return 1
def load_from(self, other_database, filename, callback):

View File

@ -60,6 +60,7 @@ class GrampsXMLDB(GrampsInMemDB):
self.bookmarks.set(self.metadata.get('bookmarks',[]))
self.db_is_open = True
self.abort_possible = True
return 1
def load_from(self, other_database, filename, callback):
@ -76,6 +77,7 @@ class GrampsXMLDB(GrampsInMemDB):
return
if (not self.readonly) and ((len(self.undodb)>0) or
not self.abort_possible):
print self.abort_possible, len(self.undodb)
quick_write(self,self.full_name)
self.db_is_open = False
GrampsInMemDB.close(self)