From 8afdabc729b99268f3567f8eeccfcd71e7fd149c Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 26 Sep 2009 02:05:06 +0000 Subject: [PATCH] Fix to write GENDEX to tgz, if necessary svn: r13255 --- src/plugins/webreport/NarrativeWeb.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index a03cd0e89..e7c2dd462 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4913,9 +4913,6 @@ class NavWebReport(Report): IndividualListPage(self, self.title, ind_list) - if self.inc_gendex: - fp_gendex = self.create_file("gendex", ext=".txt") - for person_handle in ind_list: self.progress.step() person = self.database.get_person_from_handle(person_handle) @@ -4926,11 +4923,14 @@ class NavWebReport(Report): IndividualPage(self, self.title, person, ind_list, place_list, source_list, attribute_list) - if self.inc_gendex: - self.write_gendex(fp_gendex, person) - if self.inc_gendex: - fp_gendex.close() + self.progress.set_pass(_('Creating GENDEX file'), len(ind_list)) + fp_gendex = self.create_file("gendex", ext=".txt") + for person_handle in ind_list: + self.progress.step() + person = self.database.get_person_from_handle(person_handle) + self.write_gendex(fp_gendex, person) + self.close_file(fp_gendex) def write_gendex(self, fp, person): """