9341: _deeprelationshippath filter rule, addition of filter rules and classname

This commit is contained in:
SNoiraud 2016-08-18 11:44:15 +02:00
parent 9c10b59c8b
commit f95c8a2036

View File

@ -68,8 +68,8 @@ def get_family_handle_people(db, exclude_handle, family_handle):
def possibly_add_handle(h): def possibly_add_handle(h):
if h != None and h != exclude_handle: if h != None and h != exclude_handle:
people.add(db.get_person_from_handle(h)) people.add(h)
possibly_add_handle(family.get_father_handle()) possibly_add_handle(family.get_father_handle())
possibly_add_handle(family.get_mother_handle()) possibly_add_handle(family.get_mother_handle())
@ -109,7 +109,8 @@ def find_deep_relations(db, progress, person, path, seen, target_people):
family_people = get_person_family_people(db, person, handle) family_people = get_person_family_people(db, person, handle)
for family_person in family_people: for family_person in family_people:
return_paths += find_deep_relations(db, progress, family_person, person_path, seen, target_people) pers = db.get_person_from_handle(family_person)
return_paths += find_deep_relations(db, progress, pers, person_path, seen, target_people)
if progress: progress.step() if progress: progress.step()
return return_paths return return_paths