0001587: Command line reports do not work
svn: r10111
This commit is contained in:
parent
c7d77d253d
commit
d2c853cbaa
@ -1,3 +1,7 @@
|
|||||||
|
2008-02-24 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/ReportBase/_CommandLineReport.py:
|
||||||
|
0001587: Command line reports do not work
|
||||||
|
|
||||||
2008-02-24 Brian Matherly <brian@gramps-project.org>
|
2008-02-24 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/CmdRef.py:
|
* src/plugins/CmdRef.py:
|
||||||
0001808: Bug when I click on a Generate Commandline Plugin Reference
|
0001808: Bug when I click on a Generate Commandline Plugin Reference
|
||||||
|
@ -54,6 +54,7 @@ class CommandLineReport:
|
|||||||
noopt=False):
|
noopt=False):
|
||||||
self.database = database
|
self.database = database
|
||||||
self.category = category
|
self.category = category
|
||||||
|
self.format = None
|
||||||
self.option_class = option_class(name, database)
|
self.option_class = option_class(name, database)
|
||||||
self.option_class.load_previous_values()
|
self.option_class.load_previous_values()
|
||||||
self.show = options_str_dict.pop('show',None)
|
self.show = options_str_dict.pop('show',None)
|
||||||
@ -129,6 +130,9 @@ class CommandLineReport:
|
|||||||
for item in PluginUtils.textdoc_list:
|
for item in PluginUtils.textdoc_list:
|
||||||
if item[7] == self.options_dict['off']:
|
if item[7] == self.options_dict['off']:
|
||||||
self.format = item[1]
|
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(
|
self.options_help['off'].append(
|
||||||
[ item[7] for item in PluginUtils.textdoc_list ]
|
[ item[7] for item in PluginUtils.textdoc_list ]
|
||||||
)
|
)
|
||||||
@ -137,6 +141,9 @@ class CommandLineReport:
|
|||||||
for item in PluginUtils.drawdoc_list:
|
for item in PluginUtils.drawdoc_list:
|
||||||
if item[6] == self.options_dict['off']:
|
if item[6] == self.options_dict['off']:
|
||||||
self.format = item[1]
|
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(
|
self.options_help['off'].append(
|
||||||
[ item[6] for item in PluginUtils.drawdoc_list ]
|
[ item[6] for item in PluginUtils.drawdoc_list ]
|
||||||
)
|
)
|
||||||
@ -145,6 +152,9 @@ class CommandLineReport:
|
|||||||
for item in PluginUtils.bookdoc_list:
|
for item in PluginUtils.bookdoc_list:
|
||||||
if item[6] == self.options_dict['off']:
|
if item[6] == self.options_dict['off']:
|
||||||
self.format = item[1]
|
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(
|
self.options_help['off'].append(
|
||||||
[ item[6] for item in PluginUtils.bookdoc_list ]
|
[ item[6] for item in PluginUtils.bookdoc_list ]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user