예제 #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))
예제 #2
0
파일: comms.py 프로젝트: youdroid/SickChill
 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)