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

Improvements: gen.plug only depends on gen, relationship default is moved
to Relationship.py, and config for hidden to a gui.pluginmanager


svn: r13405
This commit is contained in:
Benny Malengier
2009-10-25 13:52:29 +00:00
parent c10da3fec5
commit d25cdc3958
28 changed files with 161 additions and 181 deletions

View File

@@ -56,7 +56,7 @@ import config
from BasicUtils import name_displayer
import const
import ManagedWindow
from gen.plug import PluginManager
import Relationship
from glade import Glade
DISABLED = -1
@@ -345,8 +345,7 @@ class DisplayState(gen.utils.Callback):
"""method that rebinds the relationship to the current rel calc
Should be called after load or reload of plugins
"""
pmgr = PluginManager.get_instance()
self.relationship = pmgr.get_relationship_calculator()
self.relationship = Relationship.get_relationship_calculator(reinit=True)
def set_gendepth(self, value):
""" Set the generations we search back for showing relationships