* PeopleModel.py: simplify model interface
* EditPerson.py: get_family_from_handle fixes * EditSource.py: get_family_from_handle fixes * GraphLayout.py: get_family_from_handle fixes * ImageSelect.py: get_family_from_handle fixes * MediaView.py: get_family_from_handle fixes * MergeData.py: get_family_from_handle fixes * PlaceView.py: get_family_from_handle fixes * ReadXML.py: get_family_from_handle fixes * RelLib.py: get_family_from_handle fixes * Relationship.py: get_family_from_handle fixes * SelectChild.py: get_family_from_handle fixes * SourceView.py: get_family_from_handle fixes * SubstKeywords.py: get_family_from_handle fixes * WriteXML.py: get_family_from_handle fixes * gramps_main.py: get_family_from_handle fixes * plugins/AncestorChart.py: get_family_from_handle fixes * plugins/AncestorChart2.py: get_family_from_handle fixes * plugins/AncestorReport.py: get_family_from_handle fixes * plugins/Ancestors.py: get_family_from_handle fixes * plugins/Check.py: get_family_from_handle fixes * plugins/CountAncestors.py: get_family_from_handle fixes * plugins/Desbrowser.py: get_family_from_handle fixes * plugins/DescendReport.py: get_family_from_handle fixes * plugins/DetAncestralReport.py: get_family_from_handle fixes * plugins/DetDescendantReport.py: get_family_from_handle fixes * plugins/FamilyGroup.py: get_family_from_handle fixes * plugins/FanChart.py: get_family_from_handle fixes * plugins/FtmStyleAncestors.py: get_family_from_handle fixes * plugins/FtmStyleDescendants.py: get_family_from_handle fixes * plugins/GraphViz.py: get_family_from_handle fixes * plugins/IndivComplete.py: get_family_from_handle fixes * plugins/IndivSummary.py: get_family_from_handle fixes * plugins/Merge.py: get_family_from_handle fixes * plugins/RelGraph.py: get_family_from_handle fixes * plugins/Verify.py: get_family_from_handle fixes * plugins/WebPage.py: get_family_from_handle fixes * plugins/WriteCD.py: get_family_from_handle fixes * plugins/WritePkg.py: get_family_from_handle fixes * plugins/rel_de.py: get_family_from_handle fixes * plugins/rel_hu.py: get_family_from_handle fixes * plugins/rel_ru.py: get_family_from_handle fixes svn: r3443
This commit is contained in:
@@ -150,7 +150,7 @@ class Merge:
|
||||
p1 = self.db.get_person_from_handle(p1_id)
|
||||
f1_id = p1.get_main_parents_family_handle()
|
||||
if f1_id:
|
||||
f1 = self.db.find_family_from_handle(f1_id)
|
||||
f1 = self.db.get_family_from_handle(f1_id)
|
||||
self.ancestors_of(f1.get_father_handle(),id_list)
|
||||
self.ancestors_of(f1.get_mother_handle(),id_list)
|
||||
|
||||
@@ -541,8 +541,8 @@ class Merge:
|
||||
f2_id = p2.get_main_parents_family_handle()
|
||||
|
||||
if f1_id and f2_id:
|
||||
f1 = self.db.find_family_from_handle(f1_id)
|
||||
f2 = self.db.find_family_from_handle(f2_id)
|
||||
f1 = self.db.get_family_from_handle(f1_id)
|
||||
f2 = self.db.get_family_from_handle(f2_id)
|
||||
dad1_id = f1.get_father_handle()
|
||||
if dad1_id:
|
||||
dad1 = get_name_obj(self.db.get_person_from_handle(dad1_id))
|
||||
@@ -579,9 +579,9 @@ class Merge:
|
||||
chance = chance + value
|
||||
|
||||
for f1_id in p1.get_family_handle_list():
|
||||
f1 = self.db.find_family_from_handle(f1_id)
|
||||
f1 = self.db.get_family_from_handle(f1_id)
|
||||
for f2_id in p2.get_family_handle_list():
|
||||
f2 = self.db.find_family_from_handle(f2_id)
|
||||
f2 = self.db.get_family_from_handle(f2_id)
|
||||
if p1.get_gender() == RelLib.Person.female:
|
||||
father1_id = f1.get_father_handle()
|
||||
father2_id = f2.get_father_handle()
|
||||
|
||||
Reference in New Issue
Block a user