Пример #1
0
 def info(self, request):
     """
     The heart of the app, returning a JSON ecoded list
     of proc results.
     """
     payload = dump_procs(self.loaded_procs)
     return HttpResponse(payload, content_type='application/json')
Пример #2
0
 def info(self):
     """
     The heart of the app, returning a JSON ecoded list
     of proc results.
     """
     # do the JSON dumping ourselves to be able to handle datetimes nicely
     payload = dump_procs(self.loaded_procs).replace("</", "<\\/")
     self.set_header("Content-Type", "application/json; charset=UTF-8")
     self.write(payload)
     self.finish()
Пример #3
0
 def info(self):
     """
     The heart of the app, returning a JSON ecoded list
     of proc results.
     """
     # do the JSON dumping ourselves to be able to handle datetimes nicely
     payload = dump_procs(self.loaded_procs).replace("</", "<\\/")
     self.set_header("Content-Type", "application/json; charset=UTF-8")
     self.write(payload)
     self.finish()
Пример #4
0
 def info(id):
     """
     The heart of the app, returning a JSON ecoded list
     of proc results.
     """
     return Response(dump_procs(loaded_procs), mimetype='application/json')
Пример #5
0
 def info(id):
     """
     The heart of the app, returning a JSON ecoded list
     of proc results.
     """
     return Response(dump_procs(loaded_procs), mimetype='application/json')