* 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:
Alex Roitman
2004-08-21 18:56:01 +00:00
parent 55a76f77e1
commit a75338f737
43 changed files with 178 additions and 161 deletions

View File

@@ -971,7 +971,7 @@ class HasEvent(Rule):
for event_handle in p.get_event_list():
if not event_handle:
continue
event = db.find_event_from_handle(event_handle)
event = db.get_event_from_handle(event_handle)
val = 1
if self.list[0] and event.get_name() != self.list[0]:
val = 0
@@ -1027,7 +1027,7 @@ class HasFamilyEvent(Rule):
for event_handle in f.get_event_list():
if not event_handle:
continue
event = db.find_event_from_handle(event_handle)
event = db.get_event_from_handle(event_handle)
val = 1
if self.list[0] and event.get_name() != self.list[0]:
val = 0
@@ -1137,7 +1137,7 @@ class HasBirth(Rule):
event_handle = p.get_birth_handle()
if not event_handle:
return 0
event = db.find_event_from_handle(event_handle)
event = db.get_event_from_handle(event_handle)
ed = event.get_description().upper()
if len(self.list) > 2 and string.find(ed,self.list[2].upper())==-1:
return 0
@@ -1184,7 +1184,7 @@ class HasDeath(Rule):
event_handle = p.get_death_handle()
if not event_handle:
return 0
event = db.find_event_from_handle(event_handle)
event = db.get_event_from_handle(event_handle)
ed = event.get_description().upper()
if self.list[2] and string.find(ed,self.list[2].upper())==-1:
return 0