* src/GrampsDb/_ReadGrdb.py (importData): Properly set batch

transaction.
* src/plugins/Check.py: Properly set batch transaction.
* src/plugins/ImportGeneWeb.py: Properly set batch transaction.
* src/plugins/ImportvCard.py: Properly set batch transaction.
* src/plugins/TestCaseGenerator.py: Properly set batch transaction.


svn: r5796
This commit is contained in:
Alex Roitman
2006-01-19 04:30:40 +00:00
parent 13676fb42f
commit d0ddac1282
7 changed files with 20 additions and 16 deletions

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2005 Donald N. Allingham
# Copyright (C) 2000-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -69,8 +69,7 @@ class Check(Tool.Tool):
# checking of a read only database
return
trans = db.transaction_begin()
trans.set_batch(True)
trans = db.transaction_begin("",batch=True)
db.disable_signals()
checker = CheckIntegrity(db,parent,trans)
checker.fix_encoding()