Now searches spouse, and their familes, for evidence
svn: r14015
This commit is contained in:
parent
2d60b8763a
commit
4093c1060c
@ -627,7 +627,10 @@ class CalcToolManagedWindow(PluginWindows.ToolManagedWindowBatch):
|
|||||||
_("sibling death-related date"),
|
_("sibling death-related date"),
|
||||||
child)
|
child)
|
||||||
|
|
||||||
if not is_spouse: # if you are not doing a spouse lookup, then let's do:
|
if not is_spouse: # if you are not in recursion, let's recurse:
|
||||||
|
for family_handle in person.get_family_handle_list():
|
||||||
|
family = self.db.get_family_from_handle(family_handle)
|
||||||
|
if family:
|
||||||
mother_handle = family.get_mother_handle()
|
mother_handle = family.get_mother_handle()
|
||||||
father_handle = family.get_father_handle()
|
father_handle = family.get_father_handle()
|
||||||
if mother_handle == person.handle and father_handle:
|
if mother_handle == person.handle and father_handle:
|
||||||
@ -637,7 +640,7 @@ class CalcToolManagedWindow(PluginWindows.ToolManagedWindowBatch):
|
|||||||
return date1, date2, _("a spouse, ") + explain, other
|
return date1, date2, _("a spouse, ") + explain, other
|
||||||
elif father_handle == person.handle and mother_handle:
|
elif father_handle == person.handle and mother_handle:
|
||||||
mother = self.db.get_person_from_handle(mother_handle)
|
mother = self.db.get_person_from_handle(mother_handle)
|
||||||
date1, date2, explain, other = self.calc_estimates(father, is_spouse=True)
|
date1, date2, explain, other = self.calc_estimates(mother, is_spouse=True)
|
||||||
if date1 and date2:
|
if date1 and date2:
|
||||||
return date1, date2, _("a spouse, ") + explain, other
|
return date1, date2, _("a spouse, ") + explain, other
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user