* 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:
@@ -480,13 +480,13 @@ class EditPlace:
|
||||
for key in self.db.get_person_handles(sort_handles=False):
|
||||
p = self.db.get_person_from_handle(key)
|
||||
for event_handle in [p.get_birth_handle(), p.get_death_handle()] + p.get_event_list():
|
||||
event = self.db.find_event_from_handle(event_handle)
|
||||
event = self.db.get_event_from_handle(event_handle)
|
||||
if event and event.get_place_handle() == self.place:
|
||||
pevent.append((p,event))
|
||||
for family_handle in self.db.get_family_handles():
|
||||
f = self.db.get_family_from_handle(family_handle)
|
||||
for event_handle in f.get_event_list():
|
||||
event = self.db.find_event_from_handle(event_handle)
|
||||
event = self.db.get_event_from_handle(event_handle)
|
||||
if event and event.get_place_handle() == self.place:
|
||||
fevent.append((f,event))
|
||||
|
||||
@@ -562,7 +562,7 @@ class DeletePlaceQuery:
|
||||
for key in self.db.get_person_handles(sort_handles=False):
|
||||
p = self.db.get_person_from_handle(key)
|
||||
for event_handle in [p.get_birth_handle(), p.get_death_handle()] + p.get_event_list():
|
||||
event = self.db.find_event_from_handle(event_handle)
|
||||
event = self.db.get_event_from_handle(event_handle)
|
||||
if event and event.get_place_handle() == self.place.get_handle():
|
||||
event.set_place_handle(None)
|
||||
self.db.commit_event(event,trans)
|
||||
@@ -570,7 +570,7 @@ class DeletePlaceQuery:
|
||||
for fid in self.db.get_family_handles():
|
||||
f = self.db.get_family_from_handle(fid)
|
||||
for event_handle in f.get_event_list():
|
||||
event = self.db.find_event_from_handle(event_handle)
|
||||
event = self.db.get_event_from_handle(event_handle)
|
||||
if event and event.get_place_handle() == self.place.get_handle():
|
||||
event.set_place_handle(None)
|
||||
self.db.commit_event(event,trans)
|
||||
|
Reference in New Issue
Block a user