def get_distribution_config(self, distribution_id): response = self.make_request('GET', '/%s/distribution/%s/config' % (self.Version, distribution_id)) body = response.read() if response.status >= 300: raise CloudFrontServerError(response.status, response.reason, body) d = DistributionConfig(connection=self) d.etag = self.get_etag(response) h = handler.XmlHandler(d, self) xml.sax.parseString(body, h) return d
def get_distribution_config(self, distribution_id): response = self.make_request( 'GET', '/%s/distribution/%s/config' % (self.Version, distribution_id)) body = response.read() if response.status >= 300: raise CloudFrontServerError(response.status, response.reason, body) d = DistributionConfig(connection=self) d.etag = self.get_etag(response) h = handler.XmlHandler(d, self) xml.sax.parseString(body, h) return d