4198: Person view does not remove a row correctly when two people are merged.

This patch improves on the context changes:
 * avoid use of transaction_xx methods
 * force an abort in case of unclean transaction

Backward compatibility is broken to achieve this.


svn: r16680
This commit is contained in:
Benny Malengier
2011-02-20 10:52:06 +00:00
parent cce4013b44
commit 752d594571
47 changed files with 205 additions and 129 deletions

@ -47,6 +47,7 @@ _LOG = logging.getLogger(".gui.personview")
#
#-------------------------------------------------------------------------
import gen.lib
from gen.db import DbTxn
from gui.views.listview import ListView
import Utils
from gen.display.name import displayer as name_displayer
@ -305,7 +306,7 @@ class BasePersonView(ListView):
self.uistate.set_busy_cursor(True)
# create the transaction
with self.dbstate.db.transaction_begin() as trans:
with DbTxn('', self.dbstate.db) as trans:
# create name to save
person = self.active_person