def __init__(self, action, variables): self.action = action self.url = self.action.endpoint.url() self.replacements = {} self.params = {} self.output = { 'data': None, 'headers': {}, 'method': self.action.method } for var_type in variables.types(): render(self, var_type, **variables.vals(var_type))
def execute(self, var_type, **kwargs): render(self, var_type, **kwargs)