Use new transactions with eventmerger

svn: r16772
This commit is contained in:
Michiel Nauta 2011-03-07 08:09:18 +00:00
parent 8729e165fe
commit 6e1ed4c481

View File

@ -211,7 +211,7 @@ class MergeEventQuery(object):
self.phoenix.merge(self.titanic)
with self.database.transaction_begin(_("Merge Event Objects")) as trans:
with DbTxn(_("Merge Event Objects"), self.database) as trans:
for person in self.database.iter_people():
if person.has_handle_reference("Event", old_handle):
bri = person.birth_ref_index