%inherit file="base.html" />
<%!
from headphones import db, helpers
myDB = db.DBConnection()
%>
<%def name="headerIncludes()">
%def>
<%def name="body()">
| # |
Track Title |
Duration |
Local File |
Bit Rate |
%for track in tracks:
<%
if track['Location']:
grade = 'A'
location = track['Location']
else:
grade = 'Z'
location = ''
if track['BitRate']:
bitrate = str(track['BitRate']/1000) + ' kbps'
else:
bitrate = ''
try:
trackduration = helpers.convert_milliseconds(track['TrackDuration'])
except:
trackduration = 'n/a'
%>
| ${track['TrackNumber']} |
${track['TrackTitle']} |
${trackduration} |
${location} |
${bitrate} |
%endfor
%def>
<%def name="headIncludes()">
%def>
<%def name="javascriptIncludes()">
%def>