Add filter progress to reports
Previously, these reports did not show progress of the main filter loop.
This commit is contained in:
parent
2f2b619762
commit
68fbebe7d1
@ -374,7 +374,8 @@ class TimeLine(Report):
|
|||||||
def name_size(self):
|
def name_size(self):
|
||||||
""" get the length of the name """
|
""" get the length of the name """
|
||||||
self.plist = self.filter.apply(self.database,
|
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()
|
style_sheet = self.doc.get_style_sheet()
|
||||||
gstyle = style_sheet.get_draw_style('TLG-text')
|
gstyle = style_sheet.get_draw_style('TLG-text')
|
||||||
|
@ -805,7 +805,7 @@ class IndivCompleteReport(Report):
|
|||||||
""" write the report """
|
""" write the report """
|
||||||
plist = self._db.get_person_handles(sort_handles=True)
|
plist = self._db.get_person_handles(sort_handles=True)
|
||||||
if self.filter:
|
if self.filter:
|
||||||
ind_list = self.filter.apply(self._db, plist)
|
ind_list = self.filter.apply(self._db, plist, user=self._user)
|
||||||
else:
|
else:
|
||||||
ind_list = plist
|
ind_list = plist
|
||||||
if not ind_list:
|
if not ind_list:
|
||||||
|
@ -112,7 +112,8 @@ class PlaceReport(Report):
|
|||||||
if self.filter.get_name() != '':
|
if self.filter.get_name() != '':
|
||||||
# Use the selected filter to provide a list of place handles
|
# Use the selected filter to provide a list of place handles
|
||||||
plist = self._db.iter_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:
|
if places:
|
||||||
# Add places selected individually
|
# Add places selected individually
|
||||||
|
Loading…
Reference in New Issue
Block a user