Fix to write GENDEX to tgz, if necessary
svn: r13255
This commit is contained in:
parent
4050b4f4f3
commit
8afdabc729
@ -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)
|
||||
@ -4927,10 +4924,13 @@ class NavWebReport(Report):
|
||||
attribute_list)
|
||||
|
||||
if self.inc_gendex:
|
||||
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)
|
||||
|
||||
if self.inc_gendex:
|
||||
fp_gendex.close()
|
||||
self.close_file(fp_gendex)
|
||||
|
||||
def write_gendex(self, fp, person):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user