def download(filename, dlname): print "requesting: " + filename return bottle.static_file(filename, root=tempfile.gettempdir(), download=dlname) ### LOW-LEVEL