From 26faad1bb0decdad792161c0cb15b7dd354f65d8 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 17 Jul 2003 11:06:50 +0000 Subject: [PATCH] 2003-07-17 Tim Waugh * src/plugins/Ancestors.py: Include grandchildren's birth dates in abbreviated form. svn: r1898 --- ChangeLog | 7 ++++--- src/plugins/Ancestors.py | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43c7d945a..5960033b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2003-07-17 Tim Waugh - * src/plugins/Ancestors.py: Include other names in the notes. - Include birth/marriage/death descriptions. Change report name. - Include addresses. Better generation headings. Include nickname. + * src/plugins/Ancestors.py: Include grandchildren's birth dates in + abbreviated form. Include other names in the notes. Include + birth/marriage/death descriptions. Change report name. Include + addresses. Better generation headings. Include nickname. 2003-07-16 Donald Peterson * doc/gramps-manual/C/figures/bookreport.png: diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index 76c8bfd89..77faa403f 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -421,6 +421,22 @@ class ComprehensiveAncestorsReport (Report.Report): info += self.cite_sources (address.getSourceRefList ()) return info + def abbrev_born_died (self, person): + ret = '' + birth = person.getBirth () + date = birth.getDate () + if date: + ret += " b. " + date + ret += self.cite_sources (birth.getSourceRefList ()) + + death = person.getDeath () + date = death.getDate () + if date: + ret += " d. " + date + ret += self.cite_sources (death.getSourceRefList ()) + + return ret + def long_born_died (self, person): ret = '' born_info = self.event_info (person.getBirth ()) @@ -583,6 +599,7 @@ class ComprehensiveAncestorsReport (Report.Report): children += self.first_name_or_nick (child) children += self.cite_sources (child.getPrimaryName (). getSourceRefList ()) + children += self.abbrev_born_died (child) if child_count - count > 1: children += ', ' elif child_count - count == 1: