* src/Report.py (parse_report_options_frame): Fallback to trivial

filter on filter failure.


svn: r5014
This commit is contained in:
Alex Roitman 2005-08-04 18:05:43 +00:00
parent 5374ed4b64
commit 4ac3779a96
2 changed files with 9 additions and 3 deletions

View File

@ -3,6 +3,8 @@
* src/MergePeople.py: Typos. * src/MergePeople.py: Typos.
* src/plugins/NavWebPage.py: Typos. * src/plugins/NavWebPage.py: Typos.
* src/po/template.po: Update for upcoming 2.0.6. * src/po/template.po: Update for upcoming 2.0.6.
* src/Report.py (parse_report_options_frame): Fallback to trivial
filter on filter failure.
2005-08-04 Don Allingham <don@gramps-project.org> 2005-08-04 Don Allingham <don@gramps-project.org>
* src/PeopleModel.py: provide a work around for the python 2.3 bug unicode * src/PeopleModel.py: provide a work around for the python 2.3 bug unicode

View File

@ -834,9 +834,13 @@ class BareReportDialog:
self.options.handler.set_report_generations(self.max_gen,self.pg_brk) self.options.handler.set_report_generations(self.max_gen,self.pg_brk)
if self.filter_combo: if self.filter_combo:
try:
self.filter = self.filter_combo.get_value() self.filter = self.filter_combo.get_value()
active = self.filter_combo.get_active() active = self.filter_combo.get_active()
self.options.handler.set_filter_number(active) self.options.handler.set_filter_number(active)
except:
print "Error setting filter. Proceeding with 'Everyone'"
self.filter = GenericFilter.Everyone([])
else: else:
self.filter = None self.filter = None