From e0dc1b74f31904b16232575a1958c90e8ba8d399 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Fri, 6 Nov 2009 21:08:58 +0000 Subject: [PATCH] Added progress meter bar to Internet Address Book. svn: r13511 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 984e2da61..defc6db0d 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4537,7 +4537,7 @@ class InternetAddressBook(BasePage): Will Create an Internet Address Book of people's web sites and email addresses """ - def __init__(self, report, title, ind_list): + def __init__(self, report, title, ind_list, iab_progress): BasePage.__init__(self, report, title) db = report.database @@ -4576,6 +4576,7 @@ class InternetAddressBook(BasePage): table += tbody for person_handle in ind_list: + iab_progress.step() person = db.get_person_from_handle(person_handle) urllist = person.get_url_list() @@ -5198,7 +5199,10 @@ class NavWebReport(Report): def address_book_page(self, ind_list): - InternetAddressBook(self, self.title, ind_list) + # set progress pass + self.progress.set_pass(_("Creating internet address book page ..."), len(ind_list)) + + InternetAddressBook(self, self.title, ind_list, self.progress) def add_image(self, option_name, height=0): pic_id = self.options[option_name]