3292 register plugins, load on need, not on start of GRAMPS - GEPS 014\nmove grampletview to guipluginmanager

svn: r13409
This commit is contained in:
Benny Malengier 2009-10-25 15:33:50 +00:00
parent c67c22b6c0
commit 14dcf94739
3 changed files with 4 additions and 5 deletions

View File

@ -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"

View File

@ -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. """

View File

@ -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!"),
)