* src/DateParser.py: try to detect illegal numerical dates

* src/Utils.py: not_too_old moved over from RelLib.py
* src/WriteGedcom.py: fix call to probably_alive


svn: r3618
This commit is contained in:
Don Allingham
2004-10-10 23:22:12 +00:00
parent e6783320cb
commit 6078827986
5 changed files with 37 additions and 9 deletions

View File

@ -45,6 +45,7 @@ import gnome
import const
import RelImage
import GrampsMime
import Date
#-------------------------------------------------------------------------
#
@ -664,6 +665,12 @@ def probably_alive(person,db):
return False
return True
def not_too_old(date):
time_struct = time.localtime(time.time())
current_year = time_struct[0]
year = date.get_year()
return not( year != 0 and current_year - year > 110)
#-------------------------------------------------------------------------
#
#