Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
 def execute(self, var_type, **kwargs):
     render(self, var_type, **kwargs)