Remove "enable_options()" from the report interface. All reports define all their own options. So it is not used.

svn: r8329
This commit is contained in:
Brian Matherly
2007-03-28 02:47:03 +00:00
parent a7083cf69c
commit adbf4b1dac
6 changed files with 9 additions and 36 deletions

View File

@@ -407,10 +407,6 @@ class Options:
Subclasses MUST call this in their __init__() method.
"""
self.set_new_options()
self.enable_options()
if self.enable_dict:
self.options_dict.update(self.enable_dict)
self.handler = OptionHandler(name,self.options_dict,person_id)
def set_new_options(self):
@@ -442,22 +438,6 @@ class Options:
self.options_dict = {}
self.options_help = {}
def enable_options(self):
"""
Enables semi-common options for this module.
The semi-common option is the option which GRAMPS is aware of,
but not common enough to be present in all modules.
A self.enable_dict dictionary MUST be defined here, whose keys
are the valid semi-common keys above, and whose values are the
desired default values for semi-commons.
NOTE: If a particular module does not use semi-common options,
then it should not override this method.
"""
self.enable_dict = {}
def add_user_options(self,dialog):
"""
Sets up UI controls (widgets) for the options specific for this modul.

View File

@@ -310,8 +310,4 @@ class ToolOptions(Options):
Subclasses MUST call this in their __init__() method.
"""
self.set_new_options()
self.enable_options()
if self.enable_dict:
self.options_dict.update(self.enable_dict)
self.handler = ToolOptionHandler(name,self.options_dict,person_id)