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)
def search(**query): """ Search for products """ return [Product(hash["id"]) for hash in Nitrate()._server.Product.filter(dict(query))]
def search(**query): """ Search for users """ return [User(hash) for hash in Nitrate()._server.User.filter(dict(query))]
def search(**query): """ Search for components """ return [Component(hash) for hash in Nitrate()._server.Product.filter_components(dict(query))]