Example #1
0
def multicall_start():
    """ Enter MultiCall mode and queue following xmlrpc calls """
    log.info("Starting multicall session, gathering updates...")
    Nitrate._multicall_proxy = xmlrpclib.MultiCall(Nitrate()._server)
Example #2
0
 def search(**query):
     """ Search for products """
     return [Product(hash["id"])
             for hash in Nitrate()._server.Product.filter(dict(query))]
Example #3
0
 def search(**query):
     """ Search for users """
     return [User(hash)
             for hash in Nitrate()._server.User.filter(dict(query))]
Example #4
0
 def search(**query):
     """ Search for components """
     return [Component(hash) for hash in
             Nitrate()._server.Product.filter_components(dict(query))]