From 18fb84db7f9b62ce6f7aefb8048246c359b9193f Mon Sep 17 00:00:00 2001 From: Eero Tamminen Date: Sun, 11 May 2008 19:25:39 +0000 Subject: [PATCH] Types used for the parent relation by the display_ind_parents() method and the display_parent() method called by that did not match. Fixed the bug so that the code for showing the relation only if it's a non-birth one works. This bug was inherited from Gramps 2.2.x. svn: r10706 --- src/plugins/NarrativeWeb.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index d6014192e..668df68fc 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -2037,7 +2037,7 @@ class IndividualPage(BasePage): self.person_link(of, url, _nd.display(person), gid) else: of.write(_nd.display(person)) - if rel != gen.lib.ChildRefType.BIRTH: + if rel and rel != gen.lib.ChildRefType.BIRTH: of.write('   (%s)' % str(rel)) of.write('\n') @@ -2058,15 +2058,15 @@ class IndividualPage(BasePage): family = db.get_family_from_handle(family_handle) # Get the mother and father relationships - frel = "" - mrel = "" + frel = None + mrel = None sibling = set() child_handle = self.person.get_handle() child_ref_list = family.get_child_ref_list() for child_ref in child_ref_list: if child_ref.ref == child_handle: - frel = str(child_ref.get_father_relation()) - mrel = str(child_ref.get_mother_relation()) + frel = child_ref.get_father_relation() + mrel = child_ref.get_mother_relation() if not first: of.write('\t\t\t\n')