* src/GenericFilter.py: added a current year parameter to probably alive rule.
	* src/Utils.py: added a current year parameter to probably alive function.


svn: r4312
This commit is contained in:
Richard Taylor
2005-04-06 15:52:52 +00:00
parent 4aa708e30e
commit 76c44f2694
3 changed files with 18 additions and 9 deletions

View File

@ -1724,7 +1724,7 @@ class FamilyWithIncompleteEvent(Rule):
class ProbablyAlive(Rule):
"""People probably alive"""
labels = []
labels = ["On year"]
def name(self):
return 'People probably alive'
@ -1737,8 +1737,12 @@ class ProbablyAlive(Rule):
def apply(self,db,p_id):
if len(self.list) == 0:
current_year = None
else:
current_year = int(self.list[0])
p = db.get_person_from_handle(p_id)
return probably_alive(p,db)
return probably_alive(p,db,current_year)
#-------------------------------------------------------------------------
# "People marked private"