2007-11-21 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/Utils.py: probably_alive now takes date rather than year
	* src/gen/proxy/living.py: create date from year
	* src/gen/lib/date.py: added methods to do date math
	  and return Date object (set_yr_mon_day_offset, copy_offset_ymd)
	* src/plugins/Calendar.py: updated to use probably alive date
	* src/Filters/Rules/Person/_ProbablyAlive.py: parse entry as date



svn: r9379
This commit is contained in:
Doug Blank
2007-11-21 14:49:50 +00:00
parent f8076631d3
commit 9ee75010b6
6 changed files with 92 additions and 48 deletions

View File

@@ -69,7 +69,8 @@ class LivingProxyDb(ProxyDbBase):
"""
ProxyDbBase.__init__(self, db)
self.mode = mode
self.current_year = current_year
self.current_date = gen.lib.Date()
self.current_date.set_year(current_year)
self.years_after_death = years_after_death
def get_person_from_handle(self, handle):
@@ -366,7 +367,7 @@ class LivingProxyDb(ProxyDbBase):
def __is_living(self,person):
return probably_alive( person,
self.db,
self.current_year,
self.current_date,
self.years_after_death )
def __remove_living_from_family(self,family):