New 'Include Siblings' feature added.
and got things ready for the report to go in multiple directions
This commit is contained in:
parent
ad42e741e2
commit
bf7e9d6b0b
File diff suppressed because it is too large
Load Diff
@ -510,21 +510,26 @@ class AscendPerson(_StopRecurse, _PersonSeen):
|
|||||||
if father_handle and mother_handle:
|
if father_handle and mother_handle:
|
||||||
break
|
break
|
||||||
|
|
||||||
# we have a valid person, add him/her
|
# we have a valid person, add him/her
|
||||||
self._add_person((generation, index), person_handle, fam_handle)
|
self._add_person((generation, index), person_handle, fam_handle)
|
||||||
|
|
||||||
# has the user canceled recursion?
|
# has the user canceled recursion?
|
||||||
if not self.can_recurse():
|
if not self.can_recurse():
|
||||||
self.continue_recursion()
|
self.continue_recursion()
|
||||||
return
|
return
|
||||||
|
|
||||||
# Recursively call the function. It is okay if the handle is None,
|
# Recursively call the function. It is okay if the handle is None,
|
||||||
self.__iterate(father_handle, generation+1, index*2) #recurse on dad
|
self.__iterate(father_handle, generation+1, index*2) #recurse on dad
|
||||||
if generation < self.max_generations or self.fill_out > 0:
|
if generation < self.max_generations:
|
||||||
if father_handle is not None: # Stil winin max_generations
|
if father_handle is not None: # Stil winin max_generations
|
||||||
self.add_marriage((generation+1, index*2), father_handle, fam_handle)
|
self.add_marriage((generation+1, index*2), father_handle, fam_handle)
|
||||||
else:
|
elif mother_handle is not None:
|
||||||
self.add_marriage((generation+1, index*2), mother_handle, fam_handle)
|
self.add_marriage((generation+1, index*2), mother_handle, fam_handle)
|
||||||
|
elif fam_handle is not None:
|
||||||
|
self.add_marriage((generation+1, index*2), None, fam_handle)
|
||||||
|
elif self.fill_out > 0:
|
||||||
|
self.add_marriage((generation+1, index*2), None, None)
|
||||||
|
|
||||||
if not self.can_recurse():
|
if not self.can_recurse():
|
||||||
self.continue_recursion()
|
self.continue_recursion()
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user