2006-04-21 Alex Roitman <shura@gramps-project.org>

* src/PluginUtils/_ReportUtils.py (buried_str): Typo.
	* src/plugins/DetDescendantReport.py (write_children): Use child_refs.
	* src/plugins/DetAncestralReport.py (write_children): Use child_refs.
	* src/plugins/IndivComplete.py (write_fact): Use new event type.
	* src/docgen/KwordDoc.py (KwordDoc.close): Use tarile.



svn: r6413
This commit is contained in:
Alex Roitman
2006-04-22 05:13:21 +00:00
parent 3ee48954ea
commit b9371e2e08
6 changed files with 40 additions and 21 deletions

View File

@@ -150,10 +150,10 @@ class DetDescendantReport(Report.Report):
index = 0
for family_handle in person.get_family_handle_list():
family = self.database.get_family_from_handle(family_handle)
for child_handle in family.get_child_handle_list():
child = self.database.get_family_from_handle(child_handle)
for child_ref in family.get_child_ref_list():
child = self.database.get_family_from_handle(child_ref.ref)
ix = max(self.map.keys())
self.apply_filter(child_handle, ix+1,
self.apply_filter(child_ref.ref, ix+1,
pid+HENRY[index], cur_gen+1)
index += 1
@@ -410,7 +410,7 @@ class DetDescendantReport(Report.Report):
""" List children.
"""
if not family.get_child_handle_list():
if not family.get_child_ref_list():
return
mother_handle = family.get_mother_handle()
@@ -433,7 +433,8 @@ class DetDescendantReport(Report.Report):
self.doc.end_paragraph()
cnt = 1
for child_handle in family.get_child_handle_list():
for child_ref in family.get_child_ref_list():
child_handle = child_ref.ref
child = self.database.get_person_from_handle(child_handle)
child_name = _nd.display(child)