blob: 3f388934b0b100ad9627ff822bf61eabc0a09180 [file] [log] [blame]
showardce12f552008-09-19 00:48:59 +00001import django.http
2from new_tko.tko import rpc_interface, graphing_utils
showard35444862008-08-07 22:35:30 +00003from autotest_lib.frontend.afe import rpc_handler
4
5rpc_handler_obj = rpc_handler.RpcHandler((rpc_interface,),
6 document_module=rpc_interface)
7
8
9def handle_rpc(request):
10 return rpc_handler_obj.handle_rpc_request(request)
showardce12f552008-09-19 00:48:59 +000011
12
13def handle_plot(request):
14 id = request.GET['id']
15 max_age = request.GET['max_age']
16 return django.http.HttpResponse(
17 graphing_utils.handle_plot_request(id, max_age), mimetype='image/png')