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:
@@ -67,7 +67,7 @@ import gen.lib
|
||||
import const
|
||||
import BaseDoc
|
||||
from GrampsCfg import get_researcher
|
||||
from PluginUtils import register_report
|
||||
from PluginUtils import PluginManager
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions, CATEGORY_WEB,
|
||||
MODE_GUI)
|
||||
from PluginUtils import FilterOption, EnumeratedListOption, PersonOption, \
|
||||
@@ -1219,7 +1219,8 @@ _COUNTRIES = _get_countries()
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
register_report(
|
||||
pmgr = PluginManager.get_instance()
|
||||
pmgr.register_report(
|
||||
name = 'WebCal',
|
||||
category = CATEGORY_WEB,
|
||||
report_class = WebCalReport,
|
||||
|
||||
Reference in New Issue
Block a user