2003-06-21 Tim Waugh <twaugh@redhat.com>

* src/plugins/Ancestors.py (person_name): Handle titles and suffices.


svn: r1765
This commit is contained in:
Tim Waugh 2003-06-21 08:43:48 +00:00
parent b647b232a7
commit d2504f3685
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2003-06-21 Tim Waugh <twaugh@redhat.com>
* src/plugins/Ancestors.py (person_name): Handle titles and suffices.
2003-06-19 Tim Waugh <twaugh@redhat.com>
* Makefile.am, doc/Makefile.am, doc/omf.make, doc/xmldocs.make:
Fixes so that 'make distcheck' succeeds.

View File

@ -411,8 +411,12 @@ class AncestorsReport (Report.Report):
return 'Mr.'
def person_name (self, person):
name = ''
primary = person.getPrimaryName ()
name = primary.getTitle ()
if name:
name += ' '
first = primary.getFirstName ()
last = primary.getSurname ()
first_replaced = first.replace ('?', '')
@ -427,6 +431,10 @@ class AncestorsReport (Report.Report):
else:
name += ' ' + last
suffix = primary.getSuffix ()
if suffix:
name += ', ' + suffix
type = primary.getType ()
if type != 'Birth Name':
name += ' (%s)' % type