def dispatch(environ, start_response, mapper):
 result = mapper.match(environ=environ)
 if (result is None):
  raise webob.exc.HTTPNotFound(json_formatter=util.json_error_formatter)
 handler = result.pop('action')
 environ['wsgiorg.routing_args'] = ((), result)
 return handler(environ, start_response)

def dispatch ( environ , start_response , mapper ) : result = mapper . match ( environ = environ ) if ( result is None ) : raise webob . exc . HTTPNotFound ( json_formatter = util . json_error_formatter ) handler = result . pop ( 'action' ) environ [ 'wsgiorg.routing_args' ] = ( ( ) , result ) return handler ( environ , start_response )
dispatches incoming request and returns response .