* 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:
Don Allingham
2004-08-19 21:35:16 +00:00
parent b190a6ffc4
commit bfc08ca83a
44 changed files with 183 additions and 134 deletions

View File

@@ -54,7 +54,7 @@ class FamilyGroup:
self.db = database
if family_handle:
self.family = self.db.find_family_from_handle(family_handle)
self.family = self.db.get_family_from_handle(family_handle)
else:
self.family = None
self.output = output
@@ -212,7 +212,7 @@ class FamilyGroup:
father_name = ""
mother_name = ""
if family_handle:
family = self.db.find_family_from_handle(family_handle)
family = self.db.get_family_from_handle(family_handle)
father_handle = family.get_father_handle()
if father_handle:
father_name = self.db.get_person_from_handle(father_handle).get_primary_name().get_regular_name()
@@ -317,7 +317,7 @@ class FamilyGroup:
index = 1
for family_handle in person.get_family_handle_list():
family = self.db.find_family_from_handle(family_handle)
family = self.db.get_family_from_handle(family_handle)
for event_handle in family.get_event_list():
if event_handle:
event = self.db.find_event_from_handle(event_handle)
@@ -698,7 +698,7 @@ def _build_spouse_map(database,person):
spouse_map = {}
family_list = person.get_family_handle_list()
for family_handle in family_list:
family = database.find_family_from_handle(family_handle)
family = database.get_family_from_handle(family_handle)
if person.get_handle() == family.get_father_handle():
spouse_id = family.get_mother_handle()
else: