Example #1
0
 def getManifestList(self, identifier):
     url = MarketplaceUtil.metadataUrl(self.marketplaceEndpoint, identifier)
     try:
         metadataEntries = Util.wstring_as_xml(url)
         return self._extractManifestInfos(self._parseXml(metadataEntries))
     except urllib2.HTTPError:
         raise InputException('Failed to find metadata entries: %s' % url)
Example #2
0
 def _download(self, url):
     try:
         xml = Util.wstring_as_xml(url)
         return self._parseXml(xml)
     except urllib2.URLError, ex:
         raise InputException('Failed to download: %s, with detail: %s' % (url, str(ex)))