From ce53145dfe356b12a59482a1a575803b553f797a Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Sun, 9 Aug 2009 17:01:52 +0000 Subject: [PATCH] fix when running command line report other then html and it would try and fail to set css filename on e.g. pdf doc generator svn: r12933 --- src/ReportBase/_CommandLineReport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReportBase/_CommandLineReport.py b/src/ReportBase/_CommandLineReport.py index 59488ded2..1aedaef23 100644 --- a/src/ReportBase/_CommandLineReport.py +++ b/src/ReportBase/_CommandLineReport.py @@ -408,7 +408,7 @@ def cl_report(database, name, category, report_class, options_class, clr.option_class.handler.doc = clr.format( clr.selected_style, PaperStyle(clr.paper,clr.orien)) - if clr.css_filename is not None: + if clr.css_filename is not None and hasattr(clr.option_class.handler.doc, 'set_css_filename'): clr.option_class.handler.doc.set_css_filename(clr.css_filename) MyReport = report_class(database, clr.option_class) MyReport.doc.init()