Beispiel #1
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)
Beispiel #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)