Minor cleanups

svn: r1513
This commit is contained in:
Alex Roitman 2003-05-10 20:55:40 +00:00
parent 67342e47fe
commit c938b9b1f6

View File

@ -82,7 +82,7 @@ class FtmDescendantReport(Report.Report):
if person == None or generation >= self.max_generations: if person == None or generation >= self.max_generations:
return return
self.anc_map[index] = (person,generation) self.anc_map[index] = person
try: try:
self.gen_map[generation].append(index) self.gen_map[generation].append(index)
except: except:
@ -119,7 +119,7 @@ class FtmDescendantReport(Report.Report):
indexlist = self.gen_map[generation] indexlist = self.gen_map[generation]
indexlist.sort() indexlist.sort()
for key in indexlist: for key in indexlist:
(person,gen) = self.anc_map[key] person = self.anc_map[key]
pri_name = person.getPrimaryName() pri_name = person.getPrimaryName()
self.doc.start_paragraph("Entry","%d." % key) self.doc.start_paragraph("Entry","%d." % key)
@ -393,8 +393,8 @@ class FtmDescendantReport(Report.Report):
for child in family.getChildList(): for child in family.getChildList():
child_index = child_index + 1 child_index = child_index + 1
child_name = child.getPrimaryName().getRegularName() child_name = child.getPrimaryName().getRegularName()
for (ind,pg) in self.anc_map.items(): for (ind,p) in self.anc_map.items():
if pg[0] == child: if p == child:
index = ind index = ind
if first: if first:
first = 0 first = 0