From 220ccd309a1a50dd0b193109bd31ded560177b58 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 16 Nov 2006 04:02:28 +0000 Subject: [PATCH] 2006-11-15 Don Allingham * data/gramps.schemas.in: default transactions to off * src/Config/_GrampsConfigKeys.py: default transaction to off * src/Editors/_EditFamily.py: remove dead code * src/plugins/DetDescendantReport.py: remove dead code svn: r7631 --- ChangeLog | 6 ++++++ data/gramps.schemas.in | 2 +- src/Config/_GrampsConfigKeys.py | 2 +- src/Editors/_EditFamily.py | 24 ------------------------ src/plugins/DetDescendantReport.py | 1 - test/GrampsDb/GrampsDbTestBase.py | 2 +- 6 files changed, 9 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index ba75cbfec..ef5d122a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-11-15 Don Allingham + * data/gramps.schemas.in: default transactions to off + * src/Config/_GrampsConfigKeys.py: default transaction to off + * src/Editors/_EditFamily.py: remove dead code + * src/plugins/DetDescendantReport.py: remove dead code + 2006-11-13 Brian Matherly * src/plugins/DetAncestralReport.py: Add family Events * src/plugins/DetDescendantReport.py: Add family Events diff --git a/data/gramps.schemas.in b/data/gramps.schemas.in index 34374e246..ae636a7e0 100644 --- a/data/gramps.schemas.in +++ b/data/gramps.schemas.in @@ -737,7 +737,7 @@ /apps/gramps/behavior/transactions gramps bool - 1 + 0 Enables the use of transactions Enables the use of transactions, which increase data security and improve speed. diff --git a/src/Config/_GrampsConfigKeys.py b/src/Config/_GrampsConfigKeys.py index 70db88cd5..457140adc 100644 --- a/src/Config/_GrampsConfigKeys.py +++ b/src/Config/_GrampsConfigKeys.py @@ -142,5 +142,5 @@ default_value = { SIDEBAR_TEXT : True, WEBSITE_DIRECTORY : './', PORT_WARN : False, - TRANSACTIONS : True, + TRANSACTIONS : False, } diff --git a/src/Editors/_EditFamily.py b/src/Editors/_EditFamily.py index a4e294aca..85402aa18 100644 --- a/src/Editors/_EditFamily.py +++ b/src/Editors/_EditFamily.py @@ -688,30 +688,6 @@ class EditFamily(EditPrimary): 'a duplicate family. It is recommended that ' 'you cancel the editing of this window, and ' 'select the existing family')) -# else: -# for fh in father.get_family_handle_list(): -# fam = self.dbstate.db.get_family_from_handle(fh) -# if fam.get_mother_handle() == None: -# self.close() -# try: -# clist = self.obj.get_child_ref_list() -# fam.add_child_ref(clist[-1]) -# EditFamily(self.dbstate,self.uistate,[],fam) -# except Errors.WindowActiveError: -# pass -# elif mother_handle: -# mother = self.dbstate.db.get_person_from_handle(mother_handle) -# for fh in mother.get_family_handle_list(): -# fam = self.dbstate.db.get_family_from_handle(fh) -# if fam.get_father_handle() == None: -# self.close() -# try: -# clist = self.obj.get_child_ref_list() -# print clist -# fam.add_child_ref(clist[-1]) -# EditFamily(self.dbstate,self.uistate,[],fam) -# except Errors.WindowActiveError: -# pass def edit_person(self,obj,event,handle): if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: diff --git a/src/plugins/DetDescendantReport.py b/src/plugins/DetDescendantReport.py index 258b6e1f0..797b7d8cd 100644 --- a/src/plugins/DetDescendantReport.py +++ b/src/plugins/DetDescendantReport.py @@ -153,7 +153,6 @@ class DetDescendantReport(Report): for family_handle in person.get_family_handle_list(): family = self.database.get_family_from_handle(family_handle) for child_ref in family.get_child_ref_list(): - child = self.database.get_family_from_handle(child_ref.ref) ix = max(self.map.keys()) self.apply_filter(child_ref.ref, ix+1, pid+HENRY[index], cur_gen+1) diff --git a/test/GrampsDb/GrampsDbTestBase.py b/test/GrampsDb/GrampsDbTestBase.py index ff96271fb..b9d0754bd 100644 --- a/test/GrampsDb/GrampsDbTestBase.py +++ b/test/GrampsDb/GrampsDbTestBase.py @@ -112,7 +112,7 @@ class GrampsDbBaseTest(unittest.TestCase): for source in sources: src_ref = RelLib.SourceRef() - src_ref.set_base_handle(source.get_handle()) + src_ref.set_reference_handle(source.get_handle()) object.add_source_reference(src_ref)