HomeSort by relevance Sort by last modified time
    Searched refs:cherrypy (Results 1 - 12 of 12) sorted by null

  /external/autotest/client/common_lib/cros/fake_device_server/
server_errors.py 7 import cherrypy
10 class HTTPError(cherrypy.HTTPError):
11 """Exception class to log the HTTPResponse before routing it to cherrypy."""
17 cherrypy.HTTPError.__init__(self, status, message)
18 cherrypy.log('ServerHTTPError status: %s message: %s' % (status, message))
server.py 16 import cherrypy
31 """Stops the cherrypy server and blocks."""
32 cherrypy.engine.stop()
36 """Starts the cherrypy server and blocks.
42 cherrypy.tree.mount(
45 {'request.dispatch': cherrypy.dispatch.MethodDispatcher()}
50 cherrypy.tree.mount(
53 {'request.dispatch': cherrypy.dispatch.MethodDispatcher()}
62 cherrypy.tree.mount(
65 {'request.dispatch': cherrypy.dispatch.MethodDispatcher()
    [all...]
meta_handler.py 5 import cherrypy
14 # Needed for cherrypy to expose this to requests.
29 cherrypy.response.status = 400
oauth.py 6 import cherrypy
24 # Needed for cherrypy to expose this to requests.
49 @cherrypy.tools.json_out()
71 body_length = int(cherrypy.request.headers.get('Content-Length', 0))
72 body = cherrypy.request.rfile.read(body_length)
73 params = cherrypy.lib.httputil.parse_query_string(body)
79 cherrypy.response.status = 400
common_util.py 7 import cherrypy
16 """Parses incoming cherrypy request as a json."""
17 body_length = int(cherrypy.request.headers.get('Content-Length', 0))
18 data = cherrypy.request.rfile.read(body_length)
27 return cherrypy.request.headers.get(header_name, None)
49 """Common method to parse args to a CherryPy RPC for this server.
51 |args_tuple| should contain all the sections of the URL after CherryPy
fail_control.py 5 import cherrypy
16 # Needed for cherrypy to expose this to requests.
34 @cherrypy.tools.json_out()
common_util_unittest.py 9 import cherrypy
23 """Tests that we can seralize / deserialize json from cherrypy."""
30 cherrypy.request.headers['Content-Length'] = content_length
32 cherrypy.request.rfile = json_file
39 cherrypy.request.rfile = json_file
resource_method.py 7 from cherrypy import tools
commands.py 7 from cherrypy import tools
23 # Needed for cherrypy to expose this to requests.
devices.py 7 from cherrypy import tools
34 # Needed for cherrypy to expose this to requests.
registration_tickets.py 8 from cherrypy import tools
31 # Needed for cherrypy to expose this to requests.
  /external/toolchain-utils/
image_chromeos.py 42 # Check to see if remote machine has cherrypy, ctypes
43 command = "python -c 'import cherrypy, ctypes'"
48 ret == 255, 'Failed ssh to %s (for checking cherrypy)' % remote)
50 ret != 0, "Failed to find cherrypy or ctypes on remote '{}', "

Completed in 76 milliseconds