Exemple #1
0
    def GET(self):
        params = web.input(track_ids=None)
        if params.track_ids is None:
            return web.webapi.BadRequest()
        if params.track_ids == "*":
            fp.erase_database(True)
        else:
            track_ids = params.track_ids.split(",")
            fp.delete(track_ids)

        return json.dumps({"ok": True, "track_ids": params.track_ids})
    def GET(self):
        params = web.input(track_id="")
        # DEC strings come in as unicode so we have to force them to ASCII
        track_id = params.track_id.encode("utf8")
        response = fp.delete(track_id)

	web.header('Content-Type', 'text/plain')
        return json.dumps({"ok":True, "delete":track_id, "deleteResponse":response})
Exemple #3
0
 def GET(self):
     stuff = web.input(track_id="")
     response = fp.delete(stuff.track_id)
     return json.dumps({"ok": True})
Exemple #4
0
 def DELETE(self):
     params = web.input(track_id="")
     fp.delete(params.track_id.encode("utf-8"))
Exemple #5
0
 def DELETE(self):
     params = web.input(track_id="")
     fp.delete(params.track_id.encode("utf-8"))