(GrampsDbBase.transaction_begin): No aborting after batch transaction.

(GrampsBSDDB.transaction_begin): No aborting after batch transaction.


svn: r6537
This commit is contained in:
Alex Roitman
2006-05-03 23:36:10 +00:00
parent 7011115d16
commit 715e7b2b86
4 changed files with 14 additions and 4 deletions

View File

@@ -1204,6 +1204,10 @@ class GrampsDbBase(GrampsDBCallback):
if self.__LOG_ALL:
log.debug("%s: Transaction begin '%s'\n"
% (self.__class__.__name__, str(msg)))
if batch:
# A batch transaction does not store the commits
# Aborting the session completely will become impossible.
self.abort_possible = False
return Transaction(msg, self.undodb, batch)
def transaction_commit(self, transaction, msg):