From efe0767012b105288bcc6599bd31670124c5dc3e Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Fri, 27 Nov 2015 17:25:07 +0100 Subject: [PATCH] 7322: Some media files are not exported to the NAVWEB report. --- gramps/plugins/webreport/narrativeweb.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 3d0888de1..4259e940c 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -2385,7 +2385,9 @@ class BasePage(object): if mime_type: if mime_type.startswith("image/"): real_path, newpath = self.report.prepare_copy_media(media) - newpath = self.report.build_url_fname(newpath, up = self.up) + newpath = self.report.build_url_fname(newpath) + self.report.copy_file(media_path_full( + self.report.database, media.get_path()), newpath) tmp += Html("li", self.media_link(media_handle, newpath, media.get_description(), @@ -7353,10 +7355,15 @@ class NavWebReport(Report): self._add_citation(citation_handle, Person, person_handle) ############### Attribute section ############## - for attr in person.get_lds_ord_list(): + for attr in person.get_attribute_list(): for citation_handle in attr.get_citation_list(): self._add_citation(citation_handle, Person, person_handle) + ############### Address section ############## + for addr in person.get_address_list(): + for addr_handle in addr.get_citation_list(): + self._add_citation(addr_handle, Person, person_handle) + ############### Media section ############## # Now tell the Media tab which media objects to display # First the person's media objects