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>
|
2003-06-19 Tim Waugh <twaugh@redhat.com>
|
||||||
* Makefile.am, doc/Makefile.am, doc/omf.make, doc/xmldocs.make:
|
* Makefile.am, doc/Makefile.am, doc/omf.make, doc/xmldocs.make:
|
||||||
Fixes so that 'make distcheck' succeeds.
|
Fixes so that 'make distcheck' succeeds.
|
||||||
|
@ -411,8 +411,12 @@ class AncestorsReport (Report.Report):
|
|||||||
return 'Mr.'
|
return 'Mr.'
|
||||||
|
|
||||||
def person_name (self, person):
|
def person_name (self, person):
|
||||||
name = ''
|
|
||||||
primary = person.getPrimaryName ()
|
primary = person.getPrimaryName ()
|
||||||
|
|
||||||
|
name = primary.getTitle ()
|
||||||
|
if name:
|
||||||
|
name += ' '
|
||||||
|
|
||||||
first = primary.getFirstName ()
|
first = primary.getFirstName ()
|
||||||
last = primary.getSurname ()
|
last = primary.getSurname ()
|
||||||
first_replaced = first.replace ('?', '')
|
first_replaced = first.replace ('?', '')
|
||||||
@ -427,6 +431,10 @@ class AncestorsReport (Report.Report):
|
|||||||
else:
|
else:
|
||||||
name += ' ' + last
|
name += ' ' + last
|
||||||
|
|
||||||
|
suffix = primary.getSuffix ()
|
||||||
|
if suffix:
|
||||||
|
name += ', ' + suffix
|
||||||
|
|
||||||
type = primary.getType ()
|
type = primary.getType ()
|
||||||
if type != 'Birth Name':
|
if type != 'Birth Name':
|
||||||
name += ' (%s)' % type
|
name += ' (%s)' % type
|
||||||
|
Loading…
Reference in New Issue
Block a user