* 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:
@@ -120,7 +120,7 @@ class AncestorReport(Report.Report):
|
||||
|
||||
birth_handle = person.get_birth_handle()
|
||||
if birth_handle:
|
||||
birth = self.database.find_event_from_handle(birth_handle)
|
||||
birth = self.database.get_event_from_handle(birth_handle)
|
||||
date = birth.get_date_object().get_start_date()
|
||||
place_handle = birth.get_place_handle()
|
||||
if place_handle:
|
||||
@@ -149,13 +149,13 @@ class AncestorReport(Report.Report):
|
||||
|
||||
buried = None
|
||||
for event_handle in person.get_event_list():
|
||||
event = self.database.find_event_from_handle(event_handle)
|
||||
event = self.database.get_event_from_handle(event_handle)
|
||||
if string.lower(event.get_name()) == "burial":
|
||||
buried = event
|
||||
|
||||
death_handle = person.get_death_handle()
|
||||
if death_handle:
|
||||
death = self.database.find_event_from_handle(death_handle)
|
||||
death = self.database.get_event_from_handle(death_handle)
|
||||
date = death.get_date_object().get_start_date()
|
||||
place_handle = death.get_place_handle()
|
||||
if place_handle:
|
||||
|
||||
Reference in New Issue
Block a user