2003-07-17 Tim Waugh <twaugh@redhat.com>

* src/plugins/Ancestors.py: Handle unknown genders and missing
        first names.


svn: r1900
This commit is contained in:
Tim Waugh 2003-07-17 17:15:09 +00:00
parent 91faf01add
commit e913f0a32b
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,6 @@
2003-07-17 Tim Waugh <twaugh@redhat.com>
* 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.

View File

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