Put all the plugin management and registration stuff into a class. This new class is named PluginManager. It is a Singleton so that everyone gets access to the same plugin information.

svn: r10741
This commit is contained in:
Brian Matherly
2008-05-18 19:24:28 +00:00
parent f0b1808c71
commit 3afbd461c0
116 changed files with 1058 additions and 835 deletions

View File

@ -34,7 +34,7 @@ from gettext import gettext as _
# gramps modules
#
#------------------------------------------------------------------------
from PluginUtils import register_report, PersonOption
from PluginUtils import PluginManager, PersonOption
from ReportBase import Report, ReportUtils, MenuReportOptions, \
CATEGORY_TEXT, MODE_GUI, MODE_BKI, MODE_CLI
import BaseDoc
@ -307,7 +307,8 @@ class EndOfLineOptions(MenuReportOptions):
# Register the plugin
#
#------------------------------------------------------------------------
register_report(
pmgr = PluginManager.get_instance()
pmgr.register_report(
name = 'endofline_report',
category = CATEGORY_TEXT,
report_class = EndOfLineReport,