* src/plugins/RelGraph.py (_write_graph_record): Bug fixes.

* src/docgen/RTFDoc.py: Typo.


svn: r3170
This commit is contained in:
Alex Roitman 2004-05-16 03:04:17 +00:00
parent f7b1a747fd
commit eeca791968
3 changed files with 12 additions and 7 deletions

View File

@ -1,3 +1,7 @@
2004-05-15 Alex Roitman <shura@alex.neuro.umn.edu>
* src/plugins/RelGraph.py (_write_graph_record): Bug fixes.
* src/docgen/RTFDoc.py: Typo.
2004-05-13 Alex Roitman <shura@alex.neuro.umn.edu>
* src/RelLib.py (probably_alive): Typos.
* src/Plugins.py: Do not pass parent to the reports.

View File

@ -429,6 +429,6 @@ try:
print_label=_("Open in %s") % mprog[1]
else:
print_label=None
Plugins.register_text_doc(type, RTFDoc, 1, 0, 1, ".rtf", print_label)
Plugins.register_text_doc(mtype, RTFDoc, 1, 0, 1, ".rtf", print_label)
except:
Plugins.register_text_doc('RTF document', RTFDoc, 1, 0, 1, ".rtf", None)

View File

@ -586,7 +586,7 @@ def _write_graph_record (self):
individual = self.db.find_person_from_id(individual_id)
if individual.get_gender() == individual.female:
# There are exactly three cases where a female node is added:
family = None # no family
family_id = None # no family
husbands = [] # filtered-in husbands (naturalRelatives)
unknown_husbands = 0 # filtered-out/unknown husbands
for family_id in individual.get_family_id_list():
@ -619,10 +619,11 @@ def _write_graph_record (self):
_write_edge(self.File, style="solid",
arrowHead=self.ArrowHeadStyle,arrowTail=self.ArrowTailStyle)
for family_from_id, family_from_id2 in family_nodes.items():
for individual_from_id in family_from_id:
for individual_from_id in family_from_id2:
individual_from = self.db.find_person_from_id(individual_from_id)
for family_id, mother_rel_ship, father_rel_ship\
in individual_from.get_parent_family_id_list():
family = self.db.find_family_from_id(family_id)
father_id = family.get_father_id()
mother_id = family.get_mother_id()
# Things are complicated here because a parent may or
@ -635,7 +636,7 @@ def _write_graph_record (self):
if mother_id in family_nodes[father_id]:
_write_edge(self.File, family_from_id, father_id,
_get_edge_style(self, mother_rel_ship),
port_from=individual_from_id, port_to=mother_id)
portFrom=individual_from_id, portTo=mother_id)
else:
_write_edge(self.File, family_from_id, father_id,
_get_edge_style(self, mother_rel_ship),
@ -656,7 +657,7 @@ def _write_graph_record (self):
marriages = 0
for family_id, family_id2 in family_nodes.items():
marriages = marriages + (len(family_id2) - 1)
for individual_id in family_id:
for individual_id in family_id2:
individual = self.db.find_person_from_id(individual_id)
if individual.get_gender() == individual.male\
and individual_id not in males: