* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user