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)
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)
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)
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)
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)