aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-10-03 12:13:46 -0400
committercslocum <cslocum@d34015c8-bcbb-4646-8ac8-8ba5febf221d>2012-10-03 12:13:46 -0400
commitcc232176da977a847a0df8b59060124024345dbf (patch)
treecb9ec463920d697659398691d908c79005d8146e
parentf34206598b24597a77260db1da0d36cf7c290995 (diff)
downloadsteuermann-cc232176da977a847a0df8b59060124024345dbf.tar.gz
print run log as plain text
git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@808 d34015c8-bcbb-4646-8ac8-8ba5febf221d
-rw-r--r--scripts/steuermann_report.cgi13
1 files changed, 7 insertions, 6 deletions
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<br/>' %ln
+ print file.read()
file.close()
- print html_trailer
-
sys.exit(0)