From 60aa458d872a6bdec7f0b459b06b3743e11a96a0 Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Wed, 17 Dec 2008 20:57:19 +0000 Subject: [PATCH] Use progress meter while doing the filtering. * src/plugins/Calendar.py svn: r11488 --- src/plugins/Calendar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/Calendar.py b/src/plugins/Calendar.py index 41bda98a3..ecb56bf2c 100644 --- a/src/plugins/Calendar.py +++ b/src/plugins/Calendar.py @@ -310,13 +310,13 @@ class Calendar(Report): This method runs through the data, and collects the relevant dates and text. """ - self.progress.set_pass(_('Filtering data...'), 0) - people = self.filter.apply(self.database, - self.database.get_person_handles(sort_handles=False)) + people = self.database.get_person_handles(sort_handles=False) + self.progress.set_pass(_('Applying Filter...'), len(people)) + people = self.filter.apply(self.database, people, self.progress) pmgr = PluginManager.get_instance() 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: self.progress.step() person = self.database.get_person_from_handle(person_handle)