def __verifyTokens(self, rd): import rhnChannel import rpcServer channels = rhnChannel.getChannels() channel = channels.channels()[0] # if this doesn't throw an auth traceback, the auth doesnt work p, t = rpcServer.doCall(rd.listPackages, channel, msgCallback=None, progressCallback=None)
def __init__(self, handlers=None, depSolveHandlers=None): if handlers: self.handlers = handlers if depSolveHandlers: self.depSolveHandlers = depSolveHandlers self.channels = rhnChannel.getChannels()