Add filter progress to reports

Previously, these reports did not show progress of the main
filter loop.
This commit is contained in:
Nick Hall 2017-01-26 22:41:08 +00:00
parent 2f2b619762
commit 68fbebe7d1
3 changed files with 5 additions and 3 deletions

View File

@ -374,7 +374,8 @@ class TimeLine(Report):
def name_size(self):
""" get the length of the name """
self.plist = self.filter.apply(self.database,
self.database.iter_person_handles())
self.database.iter_person_handles(),
user=self._user)
style_sheet = self.doc.get_style_sheet()
gstyle = style_sheet.get_draw_style('TLG-text')

View File

@ -805,7 +805,7 @@ class IndivCompleteReport(Report):
""" write the report """
plist = self._db.get_person_handles(sort_handles=True)
if self.filter:
ind_list = self.filter.apply(self._db, plist)
ind_list = self.filter.apply(self._db, plist, user=self._user)
else:
ind_list = plist
if not ind_list:

View File

@ -112,7 +112,8 @@ class PlaceReport(Report):
if self.filter.get_name() != '':
# Use the selected filter to provide a list of place handles
plist = self._db.iter_place_handles()
self.place_handles = self.filter.apply(self._db, plist)
self.place_handles = self.filter.apply(self._db, plist,
user=self._user)
if places:
# Add places selected individually