From aa08262352dd415a8bb9c8f81f67b3abc91d7378 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Tue, 13 Mar 2007 22:56:28 +0000 Subject: [PATCH] * src/plugins/NarrativeWeb.py: 0000969: NarrativeWeb plugin: include the date in the media object pages svn: r8294 --- ChangeLog | 4 ++++ src/plugins/NarrativeWeb.py | 26 +++++++++++++++++++++----- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 15f686b95..9a8a2d4e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-03-13 Brian Matherly + * src/plugins/NarrativeWeb.py: 0000969: NarrativeWeb plugin: include the + date in the media object pages + 2007-03-11 Brian Matherly * src/ReportBase/_ReportDialog.py: don't catch all exceptions - we won't get a traceback. diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index 748cd4dc5..7dca932e6 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -912,13 +912,21 @@ class MediaPage(BasePage): of.write('\n') if not self.noid: - of.write('\n' % _('GRAMPS ID')) + of.write('\n') + of.write('\n' % _('GRAMPS ID')) of.write('\n' % photo.gramps_id) of.write('\n') if not note_only: - of.write('\n' % _('MIME type')) + of.write('\n') + of.write('\n' % _('MIME type')) of.write('\n' % photo.mime) - of.write('\n') + of.write('\n') + date = _dd.display(photo.get_date_object()) + if date != "": + of.write('\n') + of.write('\n' % _('Date')) + of.write('\n' % date) + of.write('\n') of.write('
%s
%s%s
%s
%s%s
%s%s
\n') of.write('\n') @@ -1260,10 +1268,18 @@ class GalleryPage(BasePage): mlist.sort(self.by_media_title) for handle in mlist: media = db.get_object_from_handle(handle) - of.write('%d.\n' % index) + date = _dd.display(media.get_date_object()) + of.write('\n') + + of.write('%d.\n' % index) + of.write('') self.media_ref_link(of,handle,media.get_description()) - of.write('\n') + of.write('\n') + + of.write('%s\n' % date) + + of.write('\n') index += 1 of.write('\n')