6915: not related tool treats siblings as not rel.
Applied patch from ennoborg, thanks! (merge from trunk) svn: r22691
This commit is contained in:
parent
8eed4a3d0d
commit
3eb71e18a7
@ -323,7 +323,7 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow) :
|
|||||||
# remember that we've now seen this person
|
# remember that we've now seen this person
|
||||||
self.handlesOfPeopleAlreadyProcessed.add(handle)
|
self.handlesOfPeopleAlreadyProcessed.add(handle)
|
||||||
|
|
||||||
# we have 3 things to do: find (1) spouses, (2) parents, and (3) children
|
# we have 4 things to do: find (1) spouses, (2) parents, siblings(3), and (4) children
|
||||||
|
|
||||||
# step 1 -- spouses
|
# step 1 -- spouses
|
||||||
for familyHandle in person.get_family_handle_list():
|
for familyHandle in person.get_family_handle_list():
|
||||||
@ -345,7 +345,16 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow) :
|
|||||||
motherHandle not in self.handlesOfPeopleAlreadyProcessed:
|
motherHandle not in self.handlesOfPeopleAlreadyProcessed:
|
||||||
self.handlesOfPeopleToBeProcessed.add(motherHandle)
|
self.handlesOfPeopleToBeProcessed.add(motherHandle)
|
||||||
|
|
||||||
# step 3 -- children
|
# step 3 -- siblings
|
||||||
|
for familyHandle in person.get_parent_family_handle_list():
|
||||||
|
family = self.db.get_family_from_handle(familyHandle)
|
||||||
|
for childRef in family.get_child_ref_list():
|
||||||
|
childHandle = childRef.ref
|
||||||
|
if childHandle and \
|
||||||
|
childHandle not in self.handlesOfPeopleAlreadyProcessed:
|
||||||
|
self.handlesOfPeopleToBeProcessed.add(childHandle)
|
||||||
|
|
||||||
|
# step 4 -- children
|
||||||
for familyHandle in person.get_family_handle_list():
|
for familyHandle in person.get_family_handle_list():
|
||||||
family = self.db.get_family_from_handle(familyHandle)
|
family = self.db.get_family_from_handle(familyHandle)
|
||||||
for childRef in family.get_child_ref_list():
|
for childRef in family.get_child_ref_list():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user