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

@@ -32,8 +32,6 @@
import gen.lib
import Relationship
import types
from gen.plug import PluginManager
#-------------------------------------------------------------------------
#
@@ -328,13 +326,3 @@ class RelationshipCalculator(Relationship.RelationshipCalculator):
return (self.get_male_relative(firstRel,secondRel),common)
else:
return (self.get_female_relative(firstRel,secondRel),common)
#-------------------------------------------------------------------------
#
# Register this function with the Plugins system
#
#-------------------------------------------------------------------------
pmgr = PluginManager.get_instance()
pmgr.register_relcalc(RelationshipCalculator,
["es","ES","es_ES","espanol","Espanol","es_ES.UTF8","es_ES@euro","es_ES.UTF8@euro",
"spanish","Spanish", "es_ES.UTF-8", "es_ES.utf-8", "es_ES.utf8"])