Implement the "<CTRL>J" for the family view

Fixes #012882
This commit is contained in:
SNoiraud 2023-05-09 10:56:56 +02:00 committed by Nick Hall
parent 482199d29c
commit 160d5952f2

View File

@ -348,6 +348,16 @@ class FamilyView(ListView):
_("A bookmark could not be set because "
"no one was selected."), parent=self.uistate.window)
def get_handle_from_gramps_id(self, gid):
"""
Return the handle of the family having the given Gramps ID.
"""
obj = self.dbstate.db.get_family_from_gramps_id(gid)
if obj:
return obj.get_handle()
else:
return None
def add(self, *obj):
family = Family()
try: