2006-11-15 Don Allingham <don@gramps-project.org>

* 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
This commit is contained in:
Don Allingham 2006-11-16 04:02:28 +00:00
parent a3990ef62d
commit 220ccd309a
6 changed files with 9 additions and 28 deletions

View File

@ -1,3 +1,9 @@
2006-11-15 Don Allingham <don@gramps-project.org>
* 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 <brian@gramps-project.org>
* src/plugins/DetAncestralReport.py: Add family Events
* src/plugins/DetDescendantReport.py: Add family Events

View File

@ -737,7 +737,7 @@
<applyto>/apps/gramps/behavior/transactions</applyto>
<owner>gramps</owner>
<type>bool</type>
<default>1</default>
<default>0</default>
<locale name="C">
<short>Enables the use of transactions</short>
<long>Enables the use of transactions, which increase data security and improve speed.</long>

View File

@ -142,5 +142,5 @@ default_value = {
SIDEBAR_TEXT : True,
WEBSITE_DIRECTORY : './',
PORT_WARN : False,
TRANSACTIONS : True,
TRANSACTIONS : False,
}

View File

@ -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:

View File

@ -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)

View File

@ -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)