* 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:
parent
2c2bcaf04f
commit
85451fb764
@ -13,6 +13,12 @@
|
||||
rebuild; convert surnames secondary index to DUPSORTed BTREE.
|
||||
* src/GrampsDb/_GrampsBSDDB.py: upgrade from gramps20.
|
||||
* src/GrampsDb/_ReadXML.py (parse): Properly set batch transaction.
|
||||
* 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.
|
||||
|
||||
2006-01-17 Don Allingham <don@gramps-project.org>
|
||||
* src/DbPrompter.py: removed
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2005 Donald N. Allingham
|
||||
# Copyright (C) 2005-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
|
||||
@ -109,8 +109,7 @@ def importData(database, filename, callback=None,cl=0,use_trans=True):
|
||||
|
||||
# Proceed with preparing for import
|
||||
if use_trans:
|
||||
trans = database.transaction_begin()
|
||||
trans.set_batch(True)
|
||||
trans = database.transaction_begin("",batch=True)
|
||||
else:
|
||||
trans = None
|
||||
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Martin Hawlisch, Donald N. Allingham
|
||||
# Copyright (C) 2000-2006 Martin Hawlisch, 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
|
||||
@ -119,8 +119,7 @@ class GeneWebParser:
|
||||
return line
|
||||
|
||||
def parse_geneweb_file(self):
|
||||
self.trans = self.db.transaction_begin()
|
||||
self.trans.set_batch(True)
|
||||
self.trans = self.db.transaction_begin("",batch=True)
|
||||
self.db.disable_signals()
|
||||
t = time.time()
|
||||
self.lineno = 0
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Martin Hawlisch, Donald N. Allingham
|
||||
# Copyright (C) 2000-2006 Martin Hawlisch, 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
|
||||
@ -99,8 +99,7 @@ class VCardParser:
|
||||
return line
|
||||
|
||||
def parse_vCard_file(self):
|
||||
self.trans = self.db.transaction_begin()
|
||||
self.trans.set_batch(True)
|
||||
self.trans = self.db.transaction_begin("",batch=True)
|
||||
self.db.disable_signals()
|
||||
t = time.time()
|
||||
self.person = None
|
||||
|
@ -2,7 +2,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Martin Hawlisch, Donald N. Allingham
|
||||
# Copyright (C) 2000-2006 Martin Hawlisch, 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
|
||||
@ -247,10 +247,12 @@ class TestcaseGenerator(Tool.Tool):
|
||||
|
||||
self.transaction_count = 0;
|
||||
|
||||
self.trans = self.db.transaction_begin()
|
||||
if not self.options.handler.options_dict['no_trans']:
|
||||
self.trans.set_batch(True)
|
||||
batch = True
|
||||
self.db.disable_signals()
|
||||
else:
|
||||
batch = False
|
||||
self.trans = self.db.transaction_begin("",batch)
|
||||
|
||||
if self.options.handler.options_dict['no_trans']:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user