コード例 #1
0
ファイル: outgoing.py プロジェクト: systamonster/zato
 def set_address_data(self):
     """	Sets the full address to invoke and parses input URL's configuration, 
     to extract any named parameters that will have to be passed in by users
     during actual calls to the resource.
     """
     self.address = '{}{}'.format(self.config['address_host'], self.config['address_url_path'])
     groups = PARSE_RE.split(self.config['address_url_path'])
     
     for group in groups:
         if group and group[0] == '{':
             self.path_params.append(group[1:-1])
コード例 #2
0
    def set_address_data(self):
        """	Sets the full address to invoke and parses input URL's configuration, 
        to extract any named parameters that will have to be passed in by users
        during actual calls to the resource.
        """
        self.address = '{}{}'.format(self.config['address_host'],
                                     self.config['address_url_path'])
        groups = PARSE_RE.split(self.config['address_url_path'])

        for group in groups:
            if group and group[0] == '{':
                self.path_params.append(group[1:-1])