Changeset 485
- Timestamp:
- 02/21/12 13:58:14
- Files:
-
- pyglider/trunk/pyglider/pyglider.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pyglider/trunk/pyglider/pyglider.py
r470 r485 298 298 # but want to append info to last known surface report 299 299 html_report = [ 300 '<div id="main">',301 300 '<h2></h2>', 302 301 '<table">', 303 302 '<thead>', 304 '<tr><th>Glider: %s</th><th> %s</th></tr>' % (glider, dt_str,),303 '<tr><th>Glider: %s</th><th>ABORT Surfacing</th></tr>' % (subject_glider,), 305 304 '</thead>', 306 305 '<tbody>'] 307 306 html_report.extend( 308 [ '<tr><td><b>Glider Location</b></td><td>--</td></tr>',309 '<tr><td> GPS Fix:</td><td>%s</td></tr>' % (gps_posn_str,),310 '<tr><td> Time of Fix:</td><td>%s</td></tr>' % (gps_dt_str,)307 [ 308 '<tr><td>Surface Event:</td><td class="red_td">%s</td></tr>' % (subject_event,), 309 '<tr><td>Surface Reason:</td><td class="red_td">%s</td></tr>' % (subject_reason,), 311 310 ]) 312 311 # close the report tbody table div and CDATA … … 314 313 ['</tbody>', 315 314 '</table>', 316 '</div>',317 315 ' ' 318 316 ]) 319 317 318 html_report_str = data[-1]['description'] 319 html_report_str = html_report_str + '\n'.join(html_report) 320 print html_report_str 321 data[-1]['description'] = html_report_str 320 322 # close for-loop of msg in gms: 321 323 return data