2007-11-29 Douglas S.Blank <dblank@cs.brynmawr.edu>
* src/ReportBase/__init__.py: import MenuReportOptions * src/ReportBase/_ReportOptions.py: import MenuOptions and define MenuReportOptions * src/plugins/Calendar.py: get MenuReportOptions from ReportOptions * src/plugins/DescendChart.py: ditto * src/plugins/AncestorChart.py: ditto * src/plugins/GVHourGlass.py: ditto * src/plugins/FanChart.py: ditto * src/PluginUtils/__init__.py: define MenuToolOptions * src/PluginUtils/_MenuOptions.py: Remove circular dependancies svn: r9433
This commit is contained in:
@ -54,7 +54,7 @@ except:
|
||||
import const
|
||||
import Config
|
||||
import BaseDoc
|
||||
from PluginUtils import _Options
|
||||
from PluginUtils import _Options, MenuOptions
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
@ -541,3 +541,25 @@ class ReportOptions(_Options.Options):
|
||||
This method MUST NOT be overridden by subclasses.
|
||||
"""
|
||||
self.handler.output = val
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
# MenuReportOptions
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
class MenuReportOptions(MenuOptions,ReportOptions):
|
||||
"""
|
||||
|
||||
The MenuReportOptions class implementes the ReportOptions
|
||||
functionality in a generic way so that the user does not need to
|
||||
be concerned with the graphical representation of the options.
|
||||
|
||||
The user should inherit the MenuReportOptions class and override the
|
||||
add_menu_options function. The user can add options to the menu and the
|
||||
MenuReportOptions class will worry about setting up the GUI.
|
||||
|
||||
"""
|
||||
def __init__(self,name,person_id=None):
|
||||
MenuOptions.__init__(self)
|
||||
ReportOptions.__init__(self,name, person_id)
|
||||
|
||||
|
Reference in New Issue
Block a user