Esempio n. 1
0
 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()
Esempio n. 2
0
 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()