From 924bdbde97977599120f540450a841740075a69f Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Fri, 25 Jan 2008 02:00:03 +0000 Subject: [PATCH] KinshipReport - add the number of people in each category. svn: r9931 --- ChangeLog | 3 +++ src/plugins/KinshipReport.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 06b828849..88d121950 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2008-01-24 Brian Matherly + * src/plugins/KinshipReport.py: Include count for each category. + 2008-01-24 Brian Matherly * src/PluginUtils/_GuiOptions.py: * src/ReportBase/_BareReportDialog.py: diff --git a/src/plugins/KinshipReport.py b/src/plugins/KinshipReport.py index bcc0806da..ea32aed04 100644 --- a/src/plugins/KinshipReport.py +++ b/src/plugins/KinshipReport.py @@ -278,9 +278,10 @@ class KinshipReport(Report): Write information about a group of people - including the title. """ cap_title = capitalize(title) + subtitle = "%s (%d)" % (cap_title, len(people_handles)) self.doc.start_paragraph("KIN-Subtitle") - mark = BaseDoc.IndexMark(cap_title,BaseDoc.INDEX_TYPE_TOC,2) - self.doc.write_text(cap_title,mark) + mark = BaseDoc.IndexMark(cap_title, BaseDoc.INDEX_TYPE_TOC, 2) + self.doc.write_text(subtitle, mark) self.doc.end_paragraph() for person_handle in people_handles: self.write_person(person_handle)