(GrampsDbBase.transaction_begin): No aborting after batch transaction.
(GrampsBSDDB.transaction_begin): No aborting after batch transaction. svn: r6537
This commit is contained in:
parent
7011115d16
commit
715e7b2b86
@ -1,9 +1,11 @@
|
|||||||
2006-05-03 Alex Roitman <shura@gramps-project.org>
|
2006-05-03 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/GrampsDb/_GrampsInMemDB.py (abort_changes): Remove method.
|
* src/GrampsDb/_GrampsInMemDB.py (abort_changes): Remove method.
|
||||||
* src/GrampsDb/_GrampsDbBase.py (abort_changes): Remove method.
|
* src/GrampsDb/_GrampsDbBase.py (abort_changes): Remove method.
|
||||||
|
(GrampsDbBase.transaction_begin): No aborting after batch transaction.
|
||||||
* src/GrampsDb/_GrampsBSDDB.py (undo,redo): Use the status from
|
* src/GrampsDb/_GrampsBSDDB.py (undo,redo): Use the status from
|
||||||
GrampsDbBase undo/redo;
|
GrampsDbBase undo/redo;
|
||||||
(abort_changes): Remove method.
|
(abort_changes): Remove method.
|
||||||
|
(GrampsBSDDB.transaction_begin): No aborting after batch transaction.
|
||||||
* src/ViewManager.py (abort): Add method for abandoning changes.
|
* src/ViewManager.py (abort): Add method for abandoning changes.
|
||||||
|
|
||||||
* configure.in: Set release to 0.SVN.
|
* configure.in: Set release to 0.SVN.
|
||||||
|
@ -1062,6 +1062,10 @@ class GrampsBSDDB(GrampsDbBase):
|
|||||||
transaction_commit function of the this database object.
|
transaction_commit function of the this database object.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if batch:
|
||||||
|
# A batch transaction does not store the commits
|
||||||
|
# Aborting the session completely will become impossible.
|
||||||
|
self.abort_possible = False
|
||||||
transaction = BdbTransaction(msg,self.undodb,batch,no_magic)
|
transaction = BdbTransaction(msg,self.undodb,batch,no_magic)
|
||||||
if transaction.batch:
|
if transaction.batch:
|
||||||
if self.UseTXN:
|
if self.UseTXN:
|
||||||
|
@ -1204,6 +1204,10 @@ class GrampsDbBase(GrampsDBCallback):
|
|||||||
if self.__LOG_ALL:
|
if self.__LOG_ALL:
|
||||||
log.debug("%s: Transaction begin '%s'\n"
|
log.debug("%s: Transaction begin '%s'\n"
|
||||||
% (self.__class__.__name__, str(msg)))
|
% (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)
|
return Transaction(msg, self.undodb, batch)
|
||||||
|
|
||||||
def transaction_commit(self, transaction, msg):
|
def transaction_commit(self, transaction, msg):
|
||||||
|
@ -420,10 +420,10 @@ class ViewManager:
|
|||||||
self.quit()
|
self.quit()
|
||||||
else:
|
else:
|
||||||
QuestionDialog.WarningDialog(
|
QuestionDialog.WarningDialog(
|
||||||
_('Cannot cleanly abandon changes'),
|
_("Cannot abandon session's changes"),
|
||||||
_('Changes cannot be abandoned because the number of '
|
_('Changes cannot be completely abandoned because the '
|
||||||
'changes made exceeded the limit.'))
|
'number of changes made in the session exceeded the '
|
||||||
|
'limit.'))
|
||||||
|
|
||||||
def _build_ui_manager(self):
|
def _build_ui_manager(self):
|
||||||
self.merge_ids = []
|
self.merge_ids = []
|
||||||
|
Loading…
Reference in New Issue
Block a user