Esempio n. 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)
Esempio n. 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)
Esempio n. 3
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)
Esempio n. 4
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)
Esempio n. 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)