* 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
13676fb42f
commit
d0ddac1282
@ -13,6 +13,12 @@
|
|||||||
rebuild; convert surnames secondary index to DUPSORTed BTREE.
|
rebuild; convert surnames secondary index to DUPSORTed BTREE.
|
||||||
* src/GrampsDb/_GrampsBSDDB.py: upgrade from gramps20.
|
* src/GrampsDb/_GrampsBSDDB.py: upgrade from gramps20.
|
||||||
* src/GrampsDb/_ReadXML.py (parse): Properly set batch transaction.
|
* 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>
|
2006-01-17 Don Allingham <don@gramps-project.org>
|
||||||
* src/DbPrompter.py: removed
|
* src/DbPrompter.py: removed
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# 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
|
# Proceed with preparing for import
|
||||||
if use_trans:
|
if use_trans:
|
||||||
trans = database.transaction_begin()
|
trans = database.transaction_begin("",batch=True)
|
||||||
trans.set_batch(True)
|
|
||||||
else:
|
else:
|
||||||
trans = None
|
trans = None
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# 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
|
# checking of a read only database
|
||||||
return
|
return
|
||||||
|
|
||||||
trans = db.transaction_begin()
|
trans = db.transaction_begin("",batch=True)
|
||||||
trans.set_batch(True)
|
|
||||||
db.disable_signals()
|
db.disable_signals()
|
||||||
checker = CheckIntegrity(db,parent,trans)
|
checker = CheckIntegrity(db,parent,trans)
|
||||||
checker.fix_encoding()
|
checker.fix_encoding()
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -119,8 +119,7 @@ class GeneWebParser:
|
|||||||
return line
|
return line
|
||||||
|
|
||||||
def parse_geneweb_file(self):
|
def parse_geneweb_file(self):
|
||||||
self.trans = self.db.transaction_begin()
|
self.trans = self.db.transaction_begin("",batch=True)
|
||||||
self.trans.set_batch(True)
|
|
||||||
self.db.disable_signals()
|
self.db.disable_signals()
|
||||||
t = time.time()
|
t = time.time()
|
||||||
self.lineno = 0
|
self.lineno = 0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -99,8 +99,7 @@ class VCardParser:
|
|||||||
return line
|
return line
|
||||||
|
|
||||||
def parse_vCard_file(self):
|
def parse_vCard_file(self):
|
||||||
self.trans = self.db.transaction_begin()
|
self.trans = self.db.transaction_begin("",batch=True)
|
||||||
self.trans.set_batch(True)
|
|
||||||
self.db.disable_signals()
|
self.db.disable_signals()
|
||||||
t = time.time()
|
t = time.time()
|
||||||
self.person = None
|
self.person = None
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# 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.transaction_count = 0;
|
||||||
|
|
||||||
self.trans = self.db.transaction_begin()
|
|
||||||
if not self.options.handler.options_dict['no_trans']:
|
if not self.options.handler.options_dict['no_trans']:
|
||||||
self.trans.set_batch(True)
|
batch = True
|
||||||
self.db.disable_signals()
|
self.db.disable_signals()
|
||||||
|
else:
|
||||||
|
batch = False
|
||||||
|
self.trans = self.db.transaction_begin("",batch)
|
||||||
|
|
||||||
if self.options.handler.options_dict['no_trans']:
|
if self.options.handler.options_dict['no_trans']:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user