Catch loops in filters

svn: r1583
This commit is contained in:
Don Allingham
2003-05-23 04:08:03 +00:00
parent e259320e13
commit ea3423f181
16 changed files with 105 additions and 10 deletions

View File

@@ -1145,13 +1145,19 @@ class WebReportDialog(Report.ReportDialog):
#------------------------------------------------------------------------
def make_report(self):
"""Create the object that will produce the web pages."""
MyReport = WebReport(self.db, self.person, self.target_path,
self.max_gen, self.photos, self.filter,
self.restrict, self.private, self.srccomments,
self.include_link, self.selected_style,
self.img_dir_text,self.template_name,
self.use_id,self.id_link,self.use_gendex,
self.html_ext)
try:
MyReport = WebReport(self.db, self.person, self.target_path,
self.max_gen, self.photos, self.filter,
self.restrict, self.private, self.srccomments,
self.include_link, self.selected_style,
self.img_dir_text,self.template_name,
self.use_id,self.id_link,self.use_gendex,
self.html_ext)
except Errors.FilterError, msg:
(m1,m2) = msg.messages()
ErrorDialog(m1,m2)
MyReport.write_report()
#------------------------------------------------------------------------