From 5b0cd6fe2709bf03411d25fd25d1a45141705884 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 19 Jan 2006 04:18:12 +0000 Subject: [PATCH] * src/GrampsDb/_ReadXML.py (parse): Properly set batch transaction. svn: r5794 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsDb/_ReadXML.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 82d8536f6..923b8c127 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -11,6 +11,7 @@ * src/GrampsDb/_GrampsBSDDB.py (rebuild_secondary): Proper rebuild; convert surnames secondary index to DUPSORTed BTREE. * src/GrampsDb/_GrampsBSDDB.py: upgrade from gramps20. + * src/GrampsDb/_ReadXML.py (parse): Properly set batch transaction. 2006-01-17 Don Allingham * src/DbPrompter.py: removed diff --git a/gramps2/src/GrampsDb/_ReadXML.py b/gramps2/src/GrampsDb/_ReadXML.py index e9249450d..0fa45a508 100644 --- a/gramps2/src/GrampsDb/_ReadXML.py +++ b/gramps2/src/GrampsDb/_ReadXML.py @@ -590,8 +590,7 @@ class GrampsParser: def parse(self,file,use_trans=True,linecount=0): - self.trans = self.db.transaction_begin() - self.trans.set_batch(True) + self.trans = self.db.transaction_begin("",batch=True) self.linecount = linecount self.db.disable_signals()