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 = ""