def _handle_api(self, handler, handler_args, handler_kwargs):
        """ Handle call to subclasses and convert the output to an appropriate value """
        try:
            status_code, return_value = handler(*handler_args, **handler_kwargs)
        except APIError as error:
            return error.send()

        web.ctx.status = _convert_http_status(status_code)
        return _api_convert_output(return_value)
def _handle_api ( self , handler , handler_args , handler_kwargs ) : try : status_code , return_value = handler ( * handler_args , ** handler_kwargs ) except APIError as error : return error . send ( ) web . ctx . status = _convert_http_status ( status_code ) return _api_convert_output ( return_value )
Handle call to subclasses and convert the output to an appropriate value