From 81aaf690f3c223254ff6a8bed85dbdb0647a9f24 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 1 Sep 2010 21:12:23 +0000 Subject: [PATCH] NarWeb: Fixed siblings not displaying in birth year order; Bug#4079. Thanks kulath for the patch file. svn: r15847 --- src/plugins/webreport/NarrativeWeb.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 335c33d68..4cd787a33 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -4307,6 +4307,7 @@ class IndividualPage(BasePage): section += table first = True + sibling = [] if parent_list: for family_handle in parent_list: family = db.get_family_from_handle(family_handle) @@ -4314,7 +4315,6 @@ class IndividualPage(BasePage): # Get the mother and father relationships frel = None mrel = None - sibling = set() child_handle = self.person.get_handle() child_ref_list = family.get_child_ref_list() @@ -4349,8 +4349,9 @@ class IndividualPage(BasePage): first = False if len(child_ref_list) > 1: - childlist = [child_ref.ref for child_ref in child_ref_list] - sibling.update(childlist) + childlist = [child_ref.ref for child_ref in child_ref_list + if child_ref.ref not in sibling] + sibling.extend(childlist) # now that we have all siblings in families of the person, # display them...