From e913f0a32b820ca6a013d8667eac91ef3f32074e Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 17 Jul 2003 17:15:09 +0000 Subject: [PATCH] 2003-07-17 Tim Waugh * src/plugins/Ancestors.py: Handle unknown genders and missing first names. svn: r1900 --- ChangeLog | 3 ++- src/plugins/Ancestors.py | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5960033b3..5d649c783 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2003-07-17 Tim Waugh - * src/plugins/Ancestors.py: Include grandchildren's birth dates in + * src/plugins/Ancestors.py: Handle unknown genders and missing + first names. 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. diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index 77faa403f..5d46e9fde 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -504,13 +504,17 @@ class ComprehensiveAncestorsReport (Report.Report): t = name.getTitle () if t: return t - if person.getGender () == RelLib.Person.female: + + gender = person.getGender () + if gender == RelLib.Person.female: if name.getType () == 'Married Name': return 'Mrs.' return 'Miss' - - return 'Mr.' + elif gender == RelLib.Person.male: + return 'Mr.' + else: + return '(gender unknown)' def cite_sources (self, sourcereflist): citation = ""