* src/DateParser.py: dynamically detect numerical parsing based
off locale. Do not depend on strptime. * src/Utils.py: remove last remains of SingleDate * src/PeopleModel.py: display "error" instead of a blank string on an error * src/EventEdit.py: removed unused parameter * src/Exporter.py: remove unused gnome.ui import * src/plugins/FanChart.py: remove old Calendar reference * src/plugins/Verify.py: remove old Calendar reference svn: r3620
This commit is contained in:
@ -647,16 +647,16 @@ def probably_alive(person,db):
|
||||
sp_death_handle = spouse.get_death_handle()
|
||||
if sp_birth_handle:
|
||||
spouse_birth = db.get_event_from_handle(sp_birth_handle)
|
||||
if spouse_birth.get_date() != "":
|
||||
d = SingleDate (spouse_birth.get_date_object().get_start_date())
|
||||
d.set_year (d.get_year() + max_age_difference)
|
||||
if not spouse_birth.get_date().is_empty():
|
||||
d = Date(spouse_birth.get_date_object())
|
||||
d.set_year(d.get_year() + max_age_difference)
|
||||
if not not_too_old (d):
|
||||
return False
|
||||
|
||||
if sp_death_handle:
|
||||
spouse_death = db.get_event_from_handle(sp_death_handle)
|
||||
if spouse_death.get_date() != "":
|
||||
d = SingleDate (spouse_death.get_date_object().get_start_date())
|
||||
d = Date(spouse_death.get_date_object())
|
||||
d.set_year (d.get_year() - min_generation)
|
||||
if not not_too_old (d):
|
||||
return False
|
||||
|
Reference in New Issue
Block a user