* src/Config/_GrampsConfigKeys.py: key for gen search depth
* src/GrampsCfg.py: Gramps preferences allows to set search depth of relationship. * src/Relationship.py: methods to change generation depth of search * src/plugins/rel_fr.py: remove depth use * src/plugins/all_relations.py: use depth, correct remark print error * src/plugins/rel_pl.py: remove depth use * src/DisplayState.py: hook to change relclass depth from GrampsCfg See also issue #1290 2007-11-22 Benny Malengier <benny.malengier@gramps-project.org> svn: r9385
This commit is contained in:
@@ -342,6 +342,14 @@ class DisplayState(gen.utils.GrampsDBCallback):
|
||||
Should be called after load or reload of plugins
|
||||
"""
|
||||
self.relationship = _PluginMgr.relationship_class()
|
||||
|
||||
def set_gendepth(self, value):
|
||||
""" Set the generations we search back for showing relationships
|
||||
on GRAMPS interface. Value must be integer > 0
|
||||
This method will be used by the preference editor when user changes
|
||||
the generations.
|
||||
"""
|
||||
self.relationship.set_depth(value)
|
||||
|
||||
def display_relationship(self, dbstate):
|
||||
''' Construct the relationship in order to show it in the statusbar
|
||||
|
Reference in New Issue
Block a user