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 5afc91d628
commit 5ff0f80a20
6 changed files with 9 additions and 28 deletions

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)