From 977e7b9a66dfb49e77201410bedcc11a134a52dc Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Mon, 13 Sep 2004 15:46:00 +0000 Subject: [PATCH] 2004-09-13 Tim Waugh * src/plugins/Ancestors.py (event_info): Prevent constructions like "died in before 1901" by playing safe if the mode is not exact. svn: r3536 --- gramps2/ChangeLog | 4 ++++ gramps2/src/plugins/Ancestors.py | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 762b9c5e7..2475a0df8 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-09-13 Tim Waugh + * src/plugins/Ancestors.py (event_info): Prevent constructions like + "died in before 1901" by playing safe if the mode is not exact. + 2004-09-11 Alex Roitman * src/ReadGedcom.py (parse_person_event): Use TYPE field as the description of the event, if the event already has a name. diff --git a/gramps2/src/plugins/Ancestors.py b/gramps2/src/plugins/Ancestors.py index 9a32cbc49..ef9ef29c5 100644 --- a/gramps2/src/plugins/Ancestors.py +++ b/gramps2/src/plugins/Ancestors.py @@ -34,6 +34,7 @@ import BaseDoc import RelLib import Errors import Plugins +import Calendar from QuestionDialog import ErrorDialog from gettext import gettext as _ @@ -441,7 +442,8 @@ class ComprehensiveAncestorsReport (Report.Report): if text: info += ' ' + text[0].lower() + text[1:] elif dateobj.get_valid (): - if dateobj.is_range (): + if (dateobj.isRange () or + dateobj.get_start_date ().getModeVal () != Calendar.EXACT): info += ' ' + dateobj.get_date () elif (dateobj.get_day_valid () and dateobj.get_month_valid () and