diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-06-06 14:25:35 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2008-06-06 14:25:35 +0000 |
commit | e8e78db980b742a1efdf4943dc153ac51e7b9dae (patch) | |
tree | b63d13b751f66bb9524bfa6dad5be49b05ba666e /tko/compose_query.cgi | |
parent | 1922c21441d3634c9482e57f5364cc811cf69177 (diff) |
Whenever URL passed to compose_query.cgi contains argument brief=1 we will
display only the main grid. Mouse hovering fuctionality stubbed in brief view
Signed-off-by: Vladimir Samarskiy <vsamarsk@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@1628 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'tko/compose_query.cgi')
-rwxr-xr-x | tko/compose_query.cgi | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/tko/compose_query.cgi b/tko/compose_query.cgi index c5a29cb2..66fe0520 100755 --- a/tko/compose_query.cgi +++ b/tko/compose_query.cgi @@ -103,6 +103,9 @@ row = parse_field(form, 'rows', 'kernel') column = parse_field(form, 'columns', 'machine_group') condition_field = parse_condition(form, 'condition', '') +if 'brief' in form.keys() and form['brief'].value <> '0': + display.set_brief_mode() + ## caller can specify rows and columns that shall be included into the report ## regardless of whether actual test data is available yet force_row_field = parse_condition(form,'force_row','') @@ -339,24 +342,30 @@ def gen_matrix(): def main(): - # create the actual page - print '<html><head><title>' - print 'Filtered Autotest Results' - print '</title></head><body>' - display.print_main_header() - print html_header % (create_select_options(column), - create_select_options(row), - condition_field, title_field) - if title_field: - print '<h1> %s </h1>' % (title_field) - print display.color_keys_row() - display.print_table(gen_matrix()) - print display.color_keys_row() - total_wall_time = time.time() - total_wall_time_start - perf_info = '<p style="font-size:x-small;">' - perf_info += 'sql access wall time = %s secs,' % sql_wall_time - perf_info += 'total wall time = %s secs</p>' % total_wall_time - print perf_info - print '</body></html>' + if display.is_brief_mode(): + ## create main grid table only as provided by gen_matrix() + display.print_table(gen_matrix()) + else: + # create the actual page + print '<html><head><title>' + print 'Filtered Autotest Results' + print '</title></head><body>' + display.print_main_header() + print html_header % (create_select_options(column), + create_select_options(row), + condition_field, title_field) + if title_field: + print '<h1> %s </h1>' % (title_field) + print display.color_keys_row() + display.print_table(gen_matrix()) + print display.color_keys_row() + total_wall_time = time.time() - total_wall_time_start + + perf_info = '<p style="font-size:x-small;">' + perf_info += 'sql access wall time = %s secs,' % sql_wall_time + perf_info += 'total wall time = %s secs</p>' % total_wall_time + print perf_info + print '</body></html>' + main() |