

def __build_args(self, func, args, req, environ):
    args = build_func_args(func, args, req.GET, self._app_args(args, req))
    func_args = inspect.getargspec(func).args
    for func_arg in func_args:
        if (func_arg == 'ip'):
            args['ip'] = self.__get_client_address(environ)
    if ('body' in func_args):
        args['body'] = req.body_file
    return args

dataset/ETHPy150Open galaxyproject/pulsar/pulsar/web/framework.py Controller.__build_args/original