* 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:
@ -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)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
|
Reference in New Issue
Block a user