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:
parent
a7083cf69c
commit
adbf4b1dac
@ -1,3 +1,12 @@
|
|||||||
|
2007-03-27 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/ReportBase/_ReportOptions.py
|
||||||
|
* src/plugins/DescendChart.py
|
||||||
|
* src/plugins/AncestorChart2.py
|
||||||
|
* src/PluginUtils/_Options.py
|
||||||
|
* src/PluginUtils/_Tool.py
|
||||||
|
Remove "enable_options()" from the report interface. All reports define all
|
||||||
|
their own options. So it is not used.
|
||||||
|
|
||||||
2007-03-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
2007-03-27 Zsolt Foldvari <zfoldvar@users.sourceforge.net>
|
||||||
* src/GrampsDb/_DbUtils.py (db_copy): include missing Note table;
|
* src/GrampsDb/_DbUtils.py (db_copy): include missing Note table;
|
||||||
handling Note bookmarks.
|
handling Note bookmarks.
|
||||||
|
@ -407,10 +407,6 @@ class Options:
|
|||||||
Subclasses MUST call this in their __init__() method.
|
Subclasses MUST call this in their __init__() method.
|
||||||
"""
|
"""
|
||||||
self.set_new_options()
|
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)
|
self.handler = OptionHandler(name,self.options_dict,person_id)
|
||||||
|
|
||||||
def set_new_options(self):
|
def set_new_options(self):
|
||||||
@ -442,22 +438,6 @@ class Options:
|
|||||||
self.options_dict = {}
|
self.options_dict = {}
|
||||||
self.options_help = {}
|
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):
|
def add_user_options(self,dialog):
|
||||||
"""
|
"""
|
||||||
Sets up UI controls (widgets) for the options specific for this modul.
|
Sets up UI controls (widgets) for the options specific for this modul.
|
||||||
|
@ -310,8 +310,4 @@ class ToolOptions(Options):
|
|||||||
Subclasses MUST call this in their __init__() method.
|
Subclasses MUST call this in their __init__() method.
|
||||||
"""
|
"""
|
||||||
self.set_new_options()
|
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)
|
self.handler = ToolOptionHandler(name,self.options_dict,person_id)
|
||||||
|
@ -475,10 +475,6 @@ class ReportOptions(_Options.Options):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
self.set_new_options()
|
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)
|
self.handler = OptionHandler(name,self.options_dict,person_id)
|
||||||
|
|
||||||
def make_default_style(self,default_style):
|
def make_default_style(self,default_style):
|
||||||
|
@ -466,10 +466,6 @@ class AncestorChartOptions(ReportOptions):
|
|||||||
True),
|
True),
|
||||||
}
|
}
|
||||||
|
|
||||||
def enable_options(self):
|
|
||||||
# Semi-common options that should be enabled for this report
|
|
||||||
self.enable_dict = {}
|
|
||||||
|
|
||||||
def add_user_options(self,dialog):
|
def add_user_options(self,dialog):
|
||||||
"""
|
"""
|
||||||
Override the base class add_user_options task to add a menu that allows
|
Override the base class add_user_options task to add a menu that allows
|
||||||
|
@ -418,10 +418,6 @@ class DescendChartOptions(ReportOptions):
|
|||||||
True),
|
True),
|
||||||
}
|
}
|
||||||
|
|
||||||
def enable_options(self):
|
|
||||||
# Semi-common options that should be enabled for this report
|
|
||||||
self.enable_dict = {}
|
|
||||||
|
|
||||||
def add_user_options(self,dialog):
|
def add_user_options(self,dialog):
|
||||||
"""
|
"""
|
||||||
Override the base class add_user_options task to add a menu that allows
|
Override the base class add_user_options task to add a menu that allows
|
||||||
|
Loading…
Reference in New Issue
Block a user