def getAvailableFilesAsScript(self): response.headers["Content-Type"] = "application/javascript" response.headers["Pragma"] = "no-cache" response.headers["Cache-Control"] = "no-cache, no-store, max-age=1, must-revalidate" return "var availableAudio = %s;" % audioDB.getAudioFiles()
def getAvailableFiles(self): response.headers["Content-Type"] = "application/json" response.headers["Pragma"] = "no-cache" response.headers["Cache-Control"] = "no-cache, no-store, max-age=1, must-revalidate" return audioDB.getAudioFiles()