9474: [Geography] Geoclose and mother handle

This commit is contained in:
SNoiraud
2016-05-28 21:53:40 +02:00
parent 3e04d97b8b
commit 2211fe947f

View File

@@ -441,9 +441,10 @@ class GeoClose(GeoGraphyView):
if father: if father:
descr1 = "%s - " % _nd.display(father) descr1 = "%s - " % _nd.display(father)
handle = fam.get_mother_handle() handle = fam.get_mother_handle()
mother = dbstate.db.get_person_from_handle(handle) if handle:
if mother: mother = dbstate.db.get_person_from_handle(handle)
descr1 = "%s%s" % (descr1, _nd.display(mother)) if mother:
descr1 = "%s%s" % (descr1, _nd.display(mother))
for event_ref in family.get_event_ref_list(): for event_ref in family.get_event_ref_list():
if event_ref: if event_ref:
event = dbstate.db.get_event_from_handle( event = dbstate.db.get_event_from_handle(