mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | """ |
| 4 | Selects all rows and columns that satisfy the condition specified |
| 5 | and draws the matrix. There is a seperate SQL query made for every (x,y) |
| 6 | in the matrix. |
| 7 | """ |
| 8 | |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 9 | print "Content-type: text/html\n" |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 10 | import cgi, cgitb, re, datetime, query_lib |
mbligh | a426693 | 2007-11-05 18:12:16 +0000 | [diff] [blame] | 11 | import sys, os |
mbligh | b180f6c | 2008-01-04 20:24:41 +0000 | [diff] [blame] | 12 | import urllib |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 13 | |
| 14 | tko = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) |
| 15 | sys.path.insert(0, tko) |
| 16 | |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 17 | import display, frontend, db, query_lib |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 18 | client_bin = os.path.abspath(os.path.join(tko, '../client/bin')) |
| 19 | sys.path.insert(0, client_bin) |
| 20 | import kernel_versions |
| 21 | |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 22 | html_header = """\ |
| 23 | <form action="compose_query.cgi" method="get"> |
| 24 | <table border="0"> |
| 25 | <tr> |
| 26 | <td>Column: </td> |
| 27 | <td>Row: </td> |
| 28 | <td>Condition: </td> |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 29 | <td align="center"> |
| 30 | <a href="http://test.kernel.org/autotest/AutotestTKOCondition">Help</a> |
| 31 | </td> |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 32 | </tr> |
| 33 | <tr> |
| 34 | <td> |
| 35 | <SELECT NAME="columns"> |
| 36 | %s |
| 37 | </SELECT> |
| 38 | </td> |
| 39 | <td> |
| 40 | <SELECT NAME="rows"> |
| 41 | %s |
| 42 | </SELECT> |
| 43 | </td> |
| 44 | <td> |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 45 | <input type="text" name="condition" size="30" value="%s"> |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 46 | <input type="hidden" name="title" value="%s"> |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 47 | </td> |
| 48 | <td align="center"><input type="submit" value="Submit"> |
| 49 | </td> |
| 50 | </tr> |
| 51 | </table> |
| 52 | </form> |
| 53 | """ |
| 54 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 55 | |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 56 | next_field = { |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 57 | 'machine_group': 'hostname', |
| 58 | 'hostname': 'tag', |
| 59 | 'tag': 'tag', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 60 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 61 | 'kernel': 'test', |
| 62 | 'test': 'label', |
| 63 | 'label': 'tag', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 64 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 65 | 'reason': 'tag', |
| 66 | 'user': 'tag', |
| 67 | 'status': 'tag', |
| 68 | |
mbligh | 5bb5586 | 2008-04-16 23:09:31 +0000 | [diff] [blame] | 69 | 'time': 'tag', |
| 70 | 'time_daily': 'time', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | |
mbligh | 11204f8 | 2008-04-16 23:30:07 +0000 | [diff] [blame^] | 74 | def parse_field(form, form_field, field_default): |
| 75 | if not form_field in form: |
| 76 | return field_default |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 77 | field_input = form[form_field].value.lower() |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 78 | if field_input and field_input in frontend.test_view_field_dict: |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 79 | return field_input |
mbligh | 11204f8 | 2008-04-16 23:30:07 +0000 | [diff] [blame^] | 80 | return field_default |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 81 | |
| 82 | |
| 83 | def parse_condition(form, form_field, field_default): |
| 84 | if not form_field in form: |
| 85 | return field_default |
| 86 | return form[form_field].value |
| 87 | |
| 88 | |
| 89 | form = cgi.FieldStorage() |
mbligh | 3d7a5f5 | 2008-04-16 23:06:36 +0000 | [diff] [blame] | 90 | |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 91 | title_field = parse_condition(form, 'title', '') |
mbligh | 3d7a5f5 | 2008-04-16 23:06:36 +0000 | [diff] [blame] | 92 | try: |
| 93 | row = parse_field(form, 'rows') |
| 94 | column = parse_field(form, 'columns') |
| 95 | condition_field = parse_condition(form, 'condition','') |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 96 | |
mbligh | 3d7a5f5 | 2008-04-16 23:06:36 +0000 | [diff] [blame] | 97 | except KeyError: |
| 98 | ## first time here |
| 99 | ## to start faster, begin with records of last week only |
| 100 | cut_off = datetime.datetime.now() - datetime.timedelta(7) |
| 101 | cut_off = datetime.date(cut_off.year, cut_off.month, cut_off.day) |
| 102 | condition_field = parse_condition(form, 'condition', |
| 103 | "time > '%s'" % str(cut_off)) |
| 104 | row = 'kernel' |
| 105 | column = 'machine_group' |
| 106 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 107 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 108 | ## caller can specify rows and columns that shall be included into the report |
| 109 | ## regardless of whether actual test data is available yet |
| 110 | force_row_field = parse_condition(form,'force_row','') |
| 111 | force_column_field = parse_condition(form,'force_column','') |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 112 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 113 | def split_forced_fields(force_field): |
| 114 | if force_field: |
| 115 | return force_field.split() |
| 116 | else: |
| 117 | return [] |
| 118 | |
| 119 | force_row = split_forced_fields(force_row_field) |
| 120 | force_column = split_forced_fields(force_column_field) |
| 121 | |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 122 | cgitb.enable() |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 123 | db_obj = db.db() |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 124 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 125 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 126 | def construct_link(x, y): |
| 127 | next_row = row |
| 128 | next_column = column |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 129 | condition_list = [] |
| 130 | if condition_field != '': |
| 131 | condition_list.append(condition_field) |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 132 | if y: |
| 133 | next_row = next_field[row] |
| 134 | condition_list.append("%s='%s'" % (row, y)) |
| 135 | if x: |
| 136 | next_column = next_field[column] |
| 137 | condition_list.append("%s='%s'" % (column, x)) |
mbligh | b180f6c | 2008-01-04 20:24:41 +0000 | [diff] [blame] | 138 | next_condition = '&'.join(condition_list) |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 139 | link = 'compose_query.cgi?' + urllib.urlencode({'columns': next_column, |
| 140 | 'rows': next_row, 'condition': next_condition, |
| 141 | 'title': title_field}) |
| 142 | return link |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 143 | |
| 144 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 145 | def create_select_options(selected_val): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 146 | ret = "" |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 147 | for option in sorted(frontend.test_view_field_dict.keys()): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 148 | if selected_val == option: |
| 149 | selected = " SELECTED" |
| 150 | else: |
| 151 | selected = "" |
| 152 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 153 | ret += '<OPTION VALUE="%s"%s>%s</OPTION>\n' % \ |
| 154 | (option, selected, option) |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 155 | return ret |
| 156 | |
| 157 | |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 158 | def map_kernel_base(kernel_name): |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 159 | ## insert <br> after each / in kernel name |
| 160 | ## but spare consequtive // |
mbligh | 8e7c78e | 2008-02-20 21:18:49 +0000 | [diff] [blame] | 161 | kernel_name = kernel_name.replace('/','/<br>') |
| 162 | kernel_name = kernel_name.replace('/<br>/<br>','//') |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 163 | return kernel_name |
| 164 | |
| 165 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 166 | def header_tuneup(field_name, header): |
| 167 | ## header tune up depends on particular field name and may include: |
| 168 | ## - breaking header into several strings if it is long url |
| 169 | ## - creating date from datetime stamp |
| 170 | ## - possibly, expect more various refinements for different fields |
| 171 | if field_name == 'kernel': |
| 172 | return map_kernel_base(header) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 173 | else: |
| 174 | return header |
| 175 | |
| 176 | |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 177 | # Kernel name mappings -- the kernels table 'printable' field is |
| 178 | # effectively a sortable identifier for the kernel It encodes the base |
| 179 | # release which is used for overall sorting, plus where patches are |
| 180 | # applied it adds an increasing pNNN patch combination identifier |
| 181 | # (actually the kernel_idx for the entry). This allows sorting |
| 182 | # as normal by the base kernel version and then sub-sorting by the |
| 183 | # "first time we saw" a patch combination which should keep them in |
| 184 | # approximatly date order. This patch identifier is not suitable |
| 185 | # for display, so we have to map it to a suitable html fragment for |
| 186 | # display. This contains the kernel base version plus the truncated |
| 187 | # names of all the patches, |
| 188 | # |
| 189 | # 2.6.24-mm1 p112 |
| 190 | # +add-new-string-functions- |
| 191 | # +x86-amd-thermal-interrupt |
| 192 | # |
| 193 | # This mapping is produced when the first mapping is request, with |
| 194 | # a single query over the patches table; the result is then cached. |
| 195 | # |
| 196 | # Note: that we only count a base version as patched if it contains |
| 197 | # patches which are not already "expressed" in the base version. |
| 198 | # This includes both -gitN and -mmN kernels. |
| 199 | map_kernel_map = None |
| 200 | |
| 201 | |
| 202 | def map_kernel_init(): |
| 203 | fields = ['base', 'k.kernel_idx', 'name', 'url'] |
| 204 | map = {} |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 205 | for (base, idx, name, url) in db_obj.select(','.join(fields), |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 206 | 'kernels k,patches p', 'k.kernel_idx=p.kernel_idx'): |
| 207 | match = re.match(r'.*(-mm[0-9]+|-git[0-9]+)\.(bz2|gz)$', url) |
| 208 | if match: |
| 209 | continue |
| 210 | |
| 211 | key = base + ' p%d' % (idx) |
| 212 | if not map.has_key(key): |
| 213 | map[key] = map_kernel_base(base) + ' p%d' % (idx) |
| 214 | map[key] += '<br>+<span title="' + name + '">' + name[0:25] + '</span>' |
| 215 | |
| 216 | return map |
| 217 | |
| 218 | |
| 219 | def map_kernel(name): |
| 220 | global map_kernel_map |
| 221 | if map_kernel_map == None: |
| 222 | map_kernel_map = map_kernel_init() |
| 223 | |
| 224 | if map_kernel_map.has_key(name): |
| 225 | return map_kernel_map[name] |
| 226 | |
| 227 | return map_kernel_base(name.split(' ')[0]) |
| 228 | |
| 229 | |
| 230 | field_map = { |
| 231 | 'kernel':map_kernel |
| 232 | } |
| 233 | |
| 234 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 235 | def gen_matrix(): |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 236 | where = None |
| 237 | if condition_field.strip() != '': |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 238 | try: |
| 239 | where = query_lib.parse_scrub_and_gen_condition( |
| 240 | condition_field, frontend.test_view_field_dict) |
| 241 | print "<!-- where clause: %s -->" % (where,) |
| 242 | except: |
| 243 | msg = "Unspecified error when parsing condition" |
| 244 | return [[display.box(msg)]] |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 245 | |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 246 | try: |
mbligh | 3126069 | 2008-04-16 23:12:12 +0000 | [diff] [blame] | 247 | ## Unfortunately, we can not request reasons of failure always |
| 248 | ## because it may result in an inflated size of data transfer |
| 249 | ## (at the moment we fetch 500 bytes of reason descriptions into |
| 250 | ## each cell ) |
| 251 | ## If 'status' in [row,column] then either width or height |
| 252 | ## of the table <=7, hence table is not really 2D, and |
| 253 | ## query_reason is relatively save. |
| 254 | ## At the same time view when either rows or columns grouped |
| 255 | ## by status is when users need reasons of failures the most. |
| 256 | |
| 257 | ## TO DO: implement [Show/Hide reasons] button or link in |
| 258 | ## all views and make thorough performance testing |
| 259 | test_data = frontend.get_matrix_data(db_obj, column, row, where, |
| 260 | query_reasons = ('status' in [row,column]) |
| 261 | ) |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 262 | except db.MySQLTooManyRows, error: |
| 263 | return [[display.box(str(error))]] |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 264 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 265 | for f_row in force_row: |
| 266 | if not f_row in test_data.y_values: |
| 267 | test_data.y_values.append(f_row) |
| 268 | for f_column in force_column: |
| 269 | if not f_column in test_data.x_values: |
| 270 | test_data.x_values.append(f_column) |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 271 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 272 | if not test_data.y_values: |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 273 | msg = "There are no results for this query (yet?)." |
| 274 | return [[display.box(msg)]] |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 275 | |
mbligh | 456b477 | 2008-03-25 23:54:45 +0000 | [diff] [blame] | 276 | dict_url = {'columns': row, |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 277 | 'rows': column, 'condition': condition_field, |
| 278 | 'title': title_field} |
mbligh | 456b477 | 2008-03-25 23:54:45 +0000 | [diff] [blame] | 279 | link = 'compose_query.cgi?' + urllib.urlencode(dict_url) |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 280 | header_row = [display.box("<center>(Flip Axis)</center>", link=link)] |
| 281 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 282 | for x in test_data.x_values: |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 283 | dx = x |
| 284 | if field_map.has_key(column): |
| 285 | dx = field_map[column](x) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 286 | x_header = header_tuneup(column, dx) |
| 287 | link = construct_link(x, None) |
| 288 | header_row.append(display.box(x_header,header=True,link=link)) |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 289 | |
| 290 | matrix = [header_row] |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 291 | for y in test_data.y_values: |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 292 | dy = y |
| 293 | if field_map.has_key(row): |
| 294 | dy = field_map[row](y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 295 | y_header = header_tuneup(row, dy) |
mbligh | 5bb5586 | 2008-04-16 23:09:31 +0000 | [diff] [blame] | 296 | link = construct_link(None, y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 297 | cur_row = [display.box(y_header, header=True, link=link)] |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 298 | for x in test_data.x_values: |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 299 | ## next 2 lines: temporary, until non timestamped |
| 300 | ## records are in the database |
| 301 | if x==datetime.datetime(1970,1,1): x = None |
| 302 | if y==datetime.datetime(1970,1,1): y = None |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 303 | try: |
mbligh | 3126069 | 2008-04-16 23:12:12 +0000 | [diff] [blame] | 304 | box_data = test_data.data[x][y] |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 305 | except: |
| 306 | cur_row.append(display.box(None, None)) |
| 307 | continue |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 308 | job_tag = test_data.data[x][y].job_tag |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 309 | if job_tag: |
mbligh | e47ff2a | 2008-02-28 00:44:11 +0000 | [diff] [blame] | 310 | link = frontend.html_root + job_tag + '/' |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 311 | if (row == 'test' and |
| 312 | not 'boot' in y and |
| 313 | not 'build' in y and |
| 314 | not 'install' in y ): |
| 315 | link += y + '/' |
| 316 | if (column == 'test' and |
| 317 | not 'boot' in x and |
| 318 | not 'build' in x and |
| 319 | not 'install' in x): |
| 320 | link += x + '/' |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 321 | else: |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 322 | link = construct_link(x, y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 323 | |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 324 | cur_row.append(display.status_precounted_box(db_obj, |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 325 | box_data, |
| 326 | link)) |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 327 | matrix.append(cur_row) |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 328 | return matrix |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 329 | |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 330 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 331 | def main(): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 332 | # create the actual page |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 333 | print '<html><head><title>' |
| 334 | print 'Filtered Autotest Results' |
| 335 | print '</title></head><body>' |
mbligh | 1467162 | 2008-01-11 16:49:54 +0000 | [diff] [blame] | 336 | display.print_main_header() |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 337 | print html_header % (create_select_options(column), |
| 338 | create_select_options(row), |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 339 | condition_field, title_field) |
| 340 | if title_field: |
| 341 | print '<h1> %s </h1>' % (title_field) |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 342 | print display.color_keys_row() |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 343 | display.print_table(gen_matrix()) |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 344 | print display.color_keys_row() |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 345 | print '</body></html>' |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 346 | |
| 347 | |
| 348 | main() |