From 6d20f77533a421205c9802ad4cfaecd7947e3453 Mon Sep 17 00:00:00 2001 From: cslocum Date: Tue, 2 Oct 2012 17:57:52 +0000 Subject: partial implementation of collecting logs locally for incorporation into build report git-svn-id: https://svn.stsci.edu/svn/ssb/etal/steuermann/trunk@805 d34015c8-bcbb-4646-8ac8-8ba5febf221d --- steuermann/report.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'steuermann/report.py') diff --git a/steuermann/report.py b/steuermann/report.py index 97dda29..17ccd6d 100644 --- a/steuermann/report.py +++ b/steuermann/report.py @@ -32,12 +32,12 @@ simple_status = ( 'N', 'P', 'S', 'W' ) def info_callback_gui( db, run, tablename, host, cmd ) : c = db.cursor() - c.execute("SELECT status, start_time, end_time FROM sm_status WHERE run = ? AND host = ? AND tablename = ? AND cmd = ?",( + c.execute("SELECT status, start_time, end_time, logs FROM sm_status WHERE run = ? AND host = ? AND tablename = ? AND cmd = ?",( run, host, tablename, cmd ) ) x = c.fetchone() if x is None : return '' - status, start_time, end_time = x + status, start_time, end_time, logs_exist = x if start_time is None : start_time = '' if end_time is None : @@ -71,6 +71,10 @@ def info_callback_gui( db, run, tablename, host, cmd ) : link = link + " : " + st + " - " + et # h_result = '%s %s %s %s'%(link, d_status, start_time, end_time) + + if logs_exist: + link += '
LINK' + h_result = link return ( t_result, h_result ) -- cgit