7309: Jump to Gramps ID functionality added to pedigree

This commit is contained in:
SNoiraud 2016-12-05 16:01:27 +01:00
parent 6188812b41
commit 55661056e2

View File

@ -571,6 +571,20 @@ class PedigreeView(NavigationView):
self.show_unknown_people = self._config.get( self.show_unknown_people = self._config.get(
'interface.pedview-show-unknown-people') 'interface.pedview-show-unknown-people')
self.func_list.update({
'<PRIMARY>J' : self.jump,
})
def get_handle_from_gramps_id(self, gid):
"""
returns the handle of the specified object
"""
obj = self.dbstate.db.get_person_from_gramps_id(gid)
if obj:
return obj.get_handle()
else:
return None
def change_page(self): def change_page(self):
"""Called when the page changes.""" """Called when the page changes."""
NavigationView.change_page(self) NavigationView.change_page(self)