From cc232176da977a847a0df8b59060124024345dbf Mon Sep 17 00:00:00 2001 From: cslocum Date: Wed, 3 Oct 2012 16:13:46 +0000 Subject: print run log as plain text git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@808 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- scripts/steuermann_report.cgi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/steuermann_report.cgi b/scripts/steuermann_report.cgi index 59d99ed..06de82c 100644 --- a/scripts/steuermann_report.cgi +++ b/scripts/steuermann_report.cgi @@ -326,19 +326,20 @@ elif action == 'show_run_log': host_logs = steuermann.config.host_logs log = os.path.join(host_logs, form['name'].value, log_name) - print html_header %{'title': '%s' %log} + print 'content-type: text/plain' + print + print log + print '#'*len(log) + print + print if not os.path.exists(log): print 'ERROR - %s does not exist' %log else: file = open(log) - lines = file.readlines() - for ln in lines: - print '%s
' %ln + print file.read() file.close() - print html_trailer - sys.exit(0) -- cgit