Refactoring the report system: reports no longer require dbstate.

svn: r9924
This commit is contained in:
Brian Matherly
2008-01-24 12:50:33 +00:00
parent c43c200c5d
commit 77af7ed092
25 changed files with 126 additions and 104 deletions

@@ -48,7 +48,8 @@ class CommandLineReport:
noopt=False):
self.database = database
self.category = category
self.option_class = option_class(name)
self.option_class = option_class(name, database)
self.option_class.load_previous_values()
self.show = options_str_dict.pop('show',None)
self.options_str_dict = options_str_dict
self.init_options(noopt)