1 import urllib2
, sys
, traceback
, cgi
4 from autotest_lib
.frontend
import views_common
5 from autotest_lib
.frontend
.afe
import rpc_handler
6 from autotest_lib
.frontend
.planner
import models
, rpc_interface
8 rpc_handler_obj
= rpc_handler
.RpcHandler((rpc_interface
,),
9 document_module
=rpc_interface
)
12 def handle_rpc(request
):
13 return rpc_handler_obj
.handle_rpc_request(request
)
16 def rpc_documentation(request
):
17 return rpc_handler_obj
.get_rpc_documentation()
20 def model_documentation(request
):
21 model_names
= ('Plan', 'Host', 'ControlFile', 'TestConfig', 'Job', 'Bug',
22 'TestRun', 'DataType', 'History', 'SavedObject', 'KeyVal',
24 return views_common
.model_documentation(models
, model_names
)