* src/plugins/FtmStyleAncestor.py (apply_filter):

Fixed generation condition.
* src/plugins/FtmStyleDescendants.py (write_report):
Do not print children if the current generation is the last.
* src/plugins/DetDescendantReport.py (filter):
Make it apply_filter, clean up and make shorter, modify numbering
algorithm so that no gaps occur in people's indices.


svn: r1649
This commit is contained in:
Alex Roitman
2003-06-03 19:48:33 +00:00
parent b7aa0d3152
commit bb645d13aa
3 changed files with 17 additions and 22 deletions

View File

@@ -58,7 +58,7 @@ class FtmAncestorReport(Report.Report):
self.sref_index = 1
def apply_filter(self,person,index,generation=1):
if person == None or index >= (1 << 30):
if person == None or generation > self.max_generations:
return
self.map[index] = (person,generation)