3292: register plugins, load on need, not on start of GRAMPS - GEPS 014

svn: r13400
This commit is contained in:
Benny Malengier
2009-10-24 13:53:20 +00:00
parent d1fbb2bff9
commit ed619cfdd6
195 changed files with 4123 additions and 3371 deletions

View File

@@ -41,12 +41,6 @@ __all__ = ['Html']
#
#------------------------------------------------------------------------
try:
from gettext import gettext as _
from gen.plug import PluginManager, Plugin
except ImportError:
print 'Plugin manager not imported.'
#------------------------------------------------------------------------
#
# Constants
@@ -542,23 +536,6 @@ class Html(list):
def __exit__(self, exc_type, exc_val, exc_tb):
return exc_type is None
# ------------------------------------------
#
# Register Plugin
#
# ------------------------------------------
try:
PluginManager.get_instance().register_plugin(
Plugin(
name = __name__,
description = _("Manages an HTML DOM tree."),
module_name = __name__
)
)
except NameError:
print 'Plugin not registered.'
#-------------------------------------------
#
# Unit tests