# Bryan Schumaker import libsaria library = libsaria.sources.library walk = library.walk get_attrs = library.get_attrs def header(wfile): wfile.write("") def footer(wfile): wfile.write("") def body(wfile): wfile.write("") for id in library.walk(): #attrs = get_attrs(id, "id", "title", "lenstr", "artist", "album", "year") artist, album, title = library.get_attrs(id, "artist", "album", "title") wfile.write("" % (artist, album, title)) wfile.write("
%s%s%s
") #wfile.write("Python!!!") def to_html(wfile): header(wfile) body(wfile) footer(wfile)