Use progress meter while doing the filtering.
* src/plugins/Calendar.py svn: r11488
This commit is contained in:
parent
d7f2a858be
commit
60aa458d87
@ -310,13 +310,13 @@ class Calendar(Report):
|
|||||||
This method runs through the data, and collects the relevant dates
|
This method runs through the data, and collects the relevant dates
|
||||||
and text.
|
and text.
|
||||||
"""
|
"""
|
||||||
self.progress.set_pass(_('Filtering data...'), 0)
|
people = self.database.get_person_handles(sort_handles=False)
|
||||||
people = self.filter.apply(self.database,
|
self.progress.set_pass(_('Applying Filter...'), len(people))
|
||||||
self.database.get_person_handles(sort_handles=False))
|
people = self.filter.apply(self.database, people, self.progress)
|
||||||
pmgr = PluginManager.get_instance()
|
pmgr = PluginManager.get_instance()
|
||||||
rel_calc = pmgr.get_relationship_calculator()
|
rel_calc = pmgr.get_relationship_calculator()
|
||||||
|
|
||||||
self.progress.set_pass(_('Filtering data...'), len(people))
|
self.progress.set_pass(_('Reading database...'), len(people))
|
||||||
for person_handle in people:
|
for person_handle in people:
|
||||||
self.progress.step()
|
self.progress.step()
|
||||||
person = self.database.get_person_from_handle(person_handle)
|
person = self.database.get_person_from_handle(person_handle)
|
||||||
|
Loading…
Reference in New Issue
Block a user