* 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:
parent
7fb923ecd7
commit
16bb718be0
@ -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.
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user