From d2504f368571af740db7057c718478e3c363e8c1 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Sat, 21 Jun 2003 08:43:48 +0000 Subject: [PATCH] 2003-06-21 Tim Waugh * src/plugins/Ancestors.py (person_name): Handle titles and suffices. svn: r1765 --- ChangeLog | 3 +++ src/plugins/Ancestors.py | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 705ddc6c2..17a47588d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2003-06-21 Tim Waugh + * src/plugins/Ancestors.py (person_name): Handle titles and suffices. + 2003-06-19 Tim Waugh * Makefile.am, doc/Makefile.am, doc/omf.make, doc/xmldocs.make: Fixes so that 'make distcheck' succeeds. diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index 9e3d31f18..18c6dcde3 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -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