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

@@ -2714,26 +2714,3 @@ class Transaction(object):
if self.last and self.first:
return self.last - self.first + 1
return 0
# ------------------------------------------
#
# Register Plugin
#
# -------------------------------------------
try:
from gettext import gettext as _
from gen.plug import PluginManager, Plugin
except ImportError:
print 'Plugin manager not imported.'
try:
PluginManager.get_instance().register_plugin(
Plugin(
name = __name__,
description = _("Base class for ImportGrdb"),
module_name = __name__
)
)
except NameError:
print 'Plugin not registered.'