示例#1
0
 def make_request(self, action, params=None, path='/', verb='GET'):
     if self.aws_sudo_id:
         if params is None:
             params = {}
         params['AWSSudoId'] = self.aws_sudo_id
     return AWSQueryConnection.make_request(self, action, params, path,
                                            verb)
示例#2
0
    def _make_request(self, params, debug=False):
        self._cleanupParsedProperties()
        conn = AWSQueryConnection(host=self.DEFAULT_HOST,
                                  aws_access_key_id=self.auth_accesskey,
                                  aws_secret_access_key=self.auth_secretkey)

        conn.APIVersion = self.API_VERSION

        response = conn.make_request(self.action, params=params)
        body = response.read()

        if debug:
            print body

        if not response.status == 200:
            raise self.ResponseError(response.status, response.reason, body)

        h = handler.XmlHandler(self, self)
        xml.sax.parseString(body, h)
示例#3
0
文件: devpay.py 项目: debedb/microput
   def _make_request(self, params, debug=False):
       self._cleanupParsedProperties()
       conn = AWSQueryConnection(host=self.DEFAULT_HOST,
                                 aws_access_key_id=self.auth_accesskey,
                                 aws_secret_access_key=self.auth_secretkey)
 
       conn.APIVersion = self.API_VERSION
 
       response = conn.make_request(self.action, params=params)
       body = response.read()
 
       if debug:
           print body
 
       if not response.status == 200:
           raise self.ResponseError(response.status, response.reason, body)
 
       h = handler.XmlHandler(self, self)
       xml.sax.parseString(body, h)
示例#4
0
文件: __init__.py 项目: 0t3dWCE/boto
 def make_request(self, action, params=None, path='/', verb='GET'):
     if self.aws_sudo_id:
         if params is None:
             params = {}
         params['AWSSudoId'] = self.aws_sudo_id
     return AWSQueryConnection.make_request(self, action, params, path, verb)
示例#5
0
 def make_request(self, action, params=None, path="/", verb="GET"):
     if self.aws_sudo_id:
         if params is None:
             params = {}
         params["AWSSudoId"] = self.aws_sudo_id
     return AWSQueryConnection.make_request(self, action, params, path, verb)