From e4f568cd01e8fbee17186f3d0e17bb6d72cc9bec Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Tue, 1 Jul 2008 08:34:08 +0000 Subject: [PATCH] NavWebReport.copy_file correction variable name. DownloadPage.__init__ correction of parameter for display_header (found by Jason). * src/plugins/NarrativeWeb.py svn: r10835 --- src/plugins/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py index f600b8947..f4e7f5c4a 100644 --- a/src/plugins/NarrativeWeb.py +++ b/src/plugins/NarrativeWeb.py @@ -1630,9 +1630,9 @@ class DownloadPage(BasePage): BasePage.__init__(self, report, title) of = self.report.create_file("download") - self.display_header(of, _('Download')) + self.display_header(of, _('Download'), content_divid='Download') - of.write('\t

%s

\n\n' % _('Download'), content_divid='Download') + of.write('\t

%s

\n\n' % _('Download')) self.display_footer(of) self.report.close_file(of) @@ -2895,8 +2895,8 @@ class NavWebReport(Report): if not os.path.isdir(dest): os.makedirs(dest) dest = os.path.join(dest, to_fname) - if from_path != dest: - shutil.copyfile(from_path, dest) + if from_fname != dest: + shutil.copyfile(from_fname, dest) elif self.warn_dir: WarningDialog( _("Possible destination error") + "\n" +