def __build_response(self, result):
        if self.response_type == 'file':
            resp = file_response(result)
        else:
            resp = Response(body=self.body(result))
        return resp
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/web/framework.py/Controller.__build_response/original