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:
parent
b647b232a7
commit
d2504f3685
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user