From 58719bde0df29cea1c478e78f41188d5d827b994 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Mon, 6 Nov 2006 04:27:23 +0000 Subject: [PATCH] * src/plugins/NarrativeWeb.py: Add family event gallery items to individual page svn: r7561 --- ChangeLog | 2 ++ src/plugins/NarrativeWeb.py | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 844a94845..e97137c57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-11-05 Brian Matherly * src/plugins/NarrativeWeb.py: Add street to place page. + * src/plugins/NarrativeWeb.py: Add family event gallery items to + individual page 2006-11-05 Don Allingham * src/plugins/Makefile.am: add RemoveUnused.py diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 5780180e1..ce677fe0b 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -1375,7 +1375,13 @@ class IndividualPage(BasePage): for handle in self.person.get_family_handle_list(): family = self.db.get_family_from_handle(handle) media_list += ReportUtils.sanitize_list(family.get_media_list(), - self.exclude_private) + self.exclude_private) + for evt_ref in family.get_event_ref_list(): + event = self.db.get_event_from_handle(evt_ref.ref) + media_list += ReportUtils.sanitize_list( + event.get_media_list(), + self.exclude_private) + for evt_ref in self.person.get_event_ref_list(): event = self.db.get_event_from_handle(evt_ref.ref) if event: