addons14/base_rest/components/service.py
def _prepare_response(self, method, result):
        """
        Internal method used to process the result of the method called by the
        controller. The result of this process is returned to the controller

        The processing is delegated to the `resapi.RestMethodParam` instance
        specified by the `restapi.method` decorator on the method.
        :param method: method
        :param response:
        :return: dict/json or `http.Response`
        """
        method_name = method
        if callable(method):
            method_name = method.__name__
        if hasattr(method, "skip_secure_response"):
            return result
        routing = getattr(method, "routing", None)
        output_param = routing["output_param"]
        if not output_param:
            _logger.warning(
                "DEPRECATED: You must define an output schema for method %s "
                "in service %s",
                method_name,
                self._name,
            )
            return result
        return output_param.to_response(self, result)

        Internal method used to process the result of the method called by the
        controller. The result of this process is returned to the controller

        The processing is delegated to the `resapi.RestMethodParam` instance
        specified by the `restapi.method` decorator on the method.
        :param method: method
        :param response:
        :return: dict/json or `http.Response`
        
Internal method used to process the result of the method called by the
controller. The result of this process is returned to the controller

The processing is delegated to the `resapi.RestMethodParam` instance
specified by the `restapi.method` decorator on the method.
Internal method used to process the result of the method called by the controller . The result of this process is returned to the controller The processing is delegated to the ` resapi . RestMethodParam ` instance specified by the ` restapi . method ` decorator on the method .
def _prepare_response(self, method, result):
        method_name = method
        if callable(method):
            method_name = method.__name__
        if hasattr(method, "skip_secure_response"):
            return result
        routing = getattr(method, "routing", None)
        output_param = routing["output_param"]
        if not output_param:
            _logger.warning(
                "DEPRECATED: You must define an output schema for method %s "
                "in service %s",
                method_name,
                self._name,
            )
            return result
        return output_param.to_response(self, result)
def _prepare_response ( self , method , result ) : method_name = method if callable ( method ) : method_name = method . __name__ if hasattr ( method , "skip_secure_response" ) : return result routing = getattr ( method , "routing" , None ) output_param = routing [ "output_param" ] if not output_param : _logger . warning ( "DEPRECATED: You must define an output schema for method %s " "in service %s" , method_name , self . _name , ) return result return output_param . to_response ( self , result )
Internal method used to process the result of the method called by the
controller.
Internal method used to process the result of the method called by the controller .
"""
        Internal method used to process the result of the method called by the
        controller. The result of this process is returned to the controller

        The processing is delegated to the `resapi.RestMethodParam` instance
        specified by the `restapi.method` decorator on the method.
        :param method: method
        :param response:
        :return: dict/json or `http.Response`
        """
dict/json or `http.Response`
dict / json or ` http . Response `
self
method
None
result
response
None