From 6e71f9a3a3962f50783668da282d30760c12ea1d Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Mon, 29 Aug 2005 12:49:25 +0000 Subject: [PATCH] more optimisations svn: r5138 --- gramps2/src/plugins/NavWebPage.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 1a5051baa..e5a1a4741 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -805,7 +805,7 @@ class MediaPage(BasePage): if target_exists: of.write('%s\n' % (newpath, self.page_title)) - else: + elif not note_only: of.write('
(%s)' % _("The file has been moved or deleted")) of.write('\n') else: @@ -816,13 +816,13 @@ class MediaPage(BasePage): else: path = os.path.join('images','document.png') of.write('
\n') - if target_exists: + if target_exists and not note_only: of.write('\n' % (newpath, self.page_title)) of.write('%s\n' % (path, self.page_title)) - if target_exists: + if target_exists and not note_only: of.write('\n') - else: + elif not note_only: of.write('
(%s)' % _("The file has been moved or deleted")) of.write('
\n') @@ -832,8 +832,9 @@ class MediaPage(BasePage): of.write('%s\n' % _('GRAMPS ID')) of.write('%s\n' % photo.gramps_id) of.write('\n') - of.write('%s\n' % _('MIME type')) - of.write('%s\n' % photo.mime) + if not note_only: + of.write('%s\n' % _('MIME type')) + of.write('%s\n' % photo.mime) of.write('\n') of.write('\n') of.write('\n')