* src/GrampsDb/_GrampsDbBase.py (transaction_commit): Remove

backend-specific call.
	* src/GrampsDb/_GrampsBSDDB.py (transaction_commit): Move surname
	list build to work for any batch transaction.
	* src/GrampsDb/_GrampsInMemDB.py (transaction_commit): Add method.


svn: r7939
This commit is contained in:
Alex Roitman
2007-01-20 16:55:08 +00:00
parent ab9fbca21f
commit 581989107b
4 changed files with 15 additions and 7 deletions

View File

@@ -1370,12 +1370,10 @@ class GrampsDbBase(GrampsDBCallback):
if self.__LOG_ALL:
log.debug("%s: Transaction commit '%s'\n"
% (self.__class__.__name__, str(msg)))
if self.readonly:
return
if not len(transaction):
if self.surnames != None:
self.build_surname_list()
if not len(transaction) or self.readonly:
return
transaction.set_description(msg)
transaction.timestamp = time.time()
self.undoindex += 1