* src/AddSpouse.py, src/ChooseParents.py, src/EditPerson.py,
src/EditPlace.py, src/EditSource.py, src/EventEdit.py, src/FamilyView.py, src/GenericFilter.py, src/Marriage.py, src/PedView.py, src/PeopleModel.py, src/PlaceView.py, src/RelLib.py, src/SelectChild.py, src/Sort.py, src/SourceView.py, src/SubstKeywords.py, src/WriteGedcom.py, src/WriteXML.py, src/plugins/AncestorReport.py, src/plugins/Ancestors.py, src/plugins/ChangeTypes.py, src/plugins/DescendReport.py, src/plugins/DetDescendantReport.py, src/plugins/EventCmp.py, src/plugins/FamilyGroup.py, src/plugins/FanChart.py, src/plugins/FtmStyleAncestors.py, src/plugins/FtmStyleDescendants.py, src/plugins/GraphViz.py, src/plugins/IndivComplete.py, src/plugins/IndivSummary.py, src/plugins/Merge.py, src/plugins/RelCalc.py, src/plugins/RelGraph.py, src/plugins/Summary.py, src/plugins/TimeLine.py, src/plugins/Verify.py, src/plugins/WebPage.py, src/plugins/WriteCD.py, src/plugins/WritePkg.py, src/plugins/DetAncestralReport.py: Use get_event_from_handle (not find_ ). svn: r3462
This commit is contained in:
@ -867,8 +867,8 @@ class FamilyView:
|
||||
self.clear()
|
||||
return
|
||||
|
||||
bd = self.parent.db.find_event_from_handle(self.person.get_birth_handle())
|
||||
dd = self.parent.db.find_event_from_handle(self.person.get_death_handle())
|
||||
bd = self.parent.db.get_event_from_handle(self.person.get_birth_handle())
|
||||
dd = self.parent.db.get_event_from_handle(self.person.get_death_handle())
|
||||
|
||||
if bd and dd:
|
||||
n = "%s [%s]\n\t%s %s\n\t%s %s " % (GrampsCfg.get_nameof()(self.person),
|
||||
@ -950,7 +950,7 @@ class FamilyView:
|
||||
def find_marriage(self,family):
|
||||
for event_handle in family.get_event_list():
|
||||
if event_handle:
|
||||
event = self.parent.db.find_event_from_handle(event_handle)
|
||||
event = self.parent.db.get_event_from_handle(event_handle)
|
||||
if event.get_name() == "Marriage":
|
||||
return event
|
||||
return None
|
||||
@ -1051,7 +1051,7 @@ class FamilyView:
|
||||
val = child.get_display_info()
|
||||
i += 1
|
||||
|
||||
event = self.parent.db.find_event_from_handle(val[3])
|
||||
event = self.parent.db.get_event_from_handle(val[3])
|
||||
if event:
|
||||
dval = event.get_date()
|
||||
else:
|
||||
@ -1416,7 +1416,7 @@ class FamilyView:
|
||||
child_handle = list[i]
|
||||
child = self.parent.db.get_person_from_handle(child_handle)
|
||||
birth_handle = child.get_birth_handle()
|
||||
birth = self.parent.db.find_event_from_handle(birth_handle)
|
||||
birth = self.parent.db.get_event_from_handle(birth_handle)
|
||||
if not birth:
|
||||
continue
|
||||
bday = birth.get_date_object()
|
||||
|
Reference in New Issue
Block a user