From 14dcf947399be6e419055141b4ba1b33df79b69c Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 25 Oct 2009 15:33:50 +0000 Subject: [PATCH] 3292 register plugins, load on need, not on start of GRAMPS - GEPS 014\nmove grampletview to guipluginmanager svn: r13409 --- src/DataViews/GrampletView.py | 4 ++-- src/gen/plug/_manager.py | 3 +-- src/plugins/gramplet/gramplet.gpr.py | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index a4e92ffec..709f44145 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -53,7 +53,7 @@ from gui.utils import add_menuitem from QuickReports import run_quick_report_by_name import GrampsDisplay from glade import Glade -from gen.plug import PluginManager +from gui.pluginmanager import GuiPluginManager #------------------------------------------------------------------------- # @@ -67,7 +67,7 @@ WIKI_HELP_PAGE = const.URL_MANUAL_PAGE + '_-_Gramplets' # Globals # #------------------------------------------------------------------------- -PLUGMAN = PluginManager.get_instance() +PLUGMAN = GuiPluginManager.get_instance() GRAMPLET_FILENAME = os.path.join(const.HOME_DIR,"gramplets.ini") NL = "\n" diff --git a/src/gen/plug/_manager.py b/src/gen/plug/_manager.py index df4e5918f..2f3f616bc 100644 --- a/src/gen/plug/_manager.py +++ b/src/gen/plug/_manager.py @@ -233,8 +233,7 @@ class BasePluginManager(object): def get_reg_gramplets(self): """ Return list of non hidden gramplets. """ - return [plg for plg in self.__pgr.gramplet_plugins() if plg.id not in - self.__hidden_plugins] + return self.__pgr.gramplet_plugins() def get_external_opt_dict(self): """ Return the dictionary of external options. """ diff --git a/src/plugins/gramplet/gramplet.gpr.py b/src/plugins/gramplet/gramplet.gpr.py index c1b490c98..1ccd860fe 100644 --- a/src/plugins/gramplet/gramplet.gpr.py +++ b/src/plugins/gramplet/gramplet.gpr.py @@ -252,7 +252,7 @@ register(GRAMPLET, fname="WelcomeGramplet.py", height=300, expand=True, - gramplet = 'make_welcome_gramplet', + gramplet = 'make_welcome_content', gramplet_title=_("Welcome to GRAMPS!"), )