diff --git a/ChangeLog b/ChangeLog index bc136f1e0..174e5154e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-02-24 Brian Matherly + * src/ReportBase/_CommandLineReport.py: + 0001587: Command line reports do not work + 2008-02-24 Brian Matherly * src/plugins/CmdRef.py: 0001808: Bug when I click on a Generate Commandline Plugin Reference diff --git a/src/ReportBase/_CommandLineReport.py b/src/ReportBase/_CommandLineReport.py index 5e43970c5..80a12f392 100644 --- a/src/ReportBase/_CommandLineReport.py +++ b/src/ReportBase/_CommandLineReport.py @@ -54,6 +54,7 @@ class CommandLineReport: noopt=False): self.database = database self.category = category + self.format = None self.option_class = option_class(name, database) self.option_class.load_previous_values() self.show = options_str_dict.pop('show',None) @@ -129,6 +130,9 @@ class CommandLineReport: for item in PluginUtils.textdoc_list: if item[7] == self.options_dict['off']: self.format = item[1] + if self.format is None: + # Pick the first one as the default. + self.format = PluginUtils.textdoc_list[0][1] self.options_help['off'].append( [ item[7] for item in PluginUtils.textdoc_list ] ) @@ -137,6 +141,9 @@ class CommandLineReport: for item in PluginUtils.drawdoc_list: if item[6] == self.options_dict['off']: self.format = item[1] + if self.format is None: + # Pick the first one as the default. + self.format = PluginUtils.drawdoc_list[0][1] self.options_help['off'].append( [ item[6] for item in PluginUtils.drawdoc_list ] ) @@ -145,6 +152,9 @@ class CommandLineReport: for item in PluginUtils.bookdoc_list: if item[6] == self.options_dict['off']: self.format = item[1] + if self.format is None: + # Pick the first one as the default. + self.format = PluginUtils.bookdoc_list[0][1] self.options_help['off'].append( [ item[6] for item in PluginUtils.bookdoc_list ] )