コード例 #1
0
 def get(self, label, build_info):
     try:
         return products.getProductListings(label, build_info)
     except Exception:
         utils.log_remote_call_error('API call getProductListings() failed',
                                     label, build_info)
         raise
コード例 #2
0
def getProductInfo(*a, **kw):
    try:
        return products.getProductInfo(*a, **kw)
    except Exception:
        utils.log_remote_call_error('XMLRPC call getProductInfo() failed', *a,
                                    **kw)
        raise Fault(1, 'An unexpected error has occurred.')
コード例 #3
0
 def get(self, label, module_build_nvr):
     try:
         return products.getModuleProductListings(label, module_build_nvr)
     except products.ProductListingsNotFoundError as ex:
         raise NotFound(str(ex))
     except Exception:
         utils.log_remote_call_error('API call getModuleProductListings() failed', label, module_build_nvr)
         raise
コード例 #4
0
 def get(self, label):
     try:
         versions, variants = products.getProductInfo(label)
     except Exception:
         utils.log_remote_call_error('API call getProductInfo() failed',
                                     label)
         raise
     return [versions, variants]
コード例 #5
0
 def get(self, label):
     try:
         versions, variants = products.getProductInfo(label)
     except products.ProductListingsNotFoundError as ex:
         raise NotFound(str(ex))
     except Exception:
         utils.log_remote_call_error('API call getProductInfo() failed', label)
         raise
     return [versions, variants]
コード例 #6
0
 def get(self, label, build_info):
     try:
         return products.getProductListings(label, build_info)
     except products.ProductListingsNotFoundError as ex:
         raise NotFound(str(ex))
     except Exception:
         utils.log_remote_call_error("API call getProductListings() failed",
                                     label, build_info)
         raise
コード例 #7
0
 def get(self):
     try:
         return products.getProductLabels()
     except Exception:
         utils.log_remote_call_error("API call getProductLabels() failed")
         raise