From 15fe5ad82e972b5afffed54461477849806ad7e5 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 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/NarrativeWeb.py | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 844a94845..e97137c57 100644 --- a/gramps2/ChangeLog +++ b/gramps2/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/gramps2/src/plugins/NarrativeWeb.py b/gramps2/src/plugins/NarrativeWeb.py index 5780180e1..ce677fe0b 100644 --- a/gramps2/src/plugins/NarrativeWeb.py +++ b/gramps2/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: