def index(): try: addrList = ConfUtil.getMQAddrList() addr = request.args.get('addr', addrList[0]) queues = MQService.getQueues(addr) addrList.remove(addr) addrList.insert(0, addr) except Exception, e: log.error(e)
def __init__(self): self.__addrList = ConfUtil.getMQAddrList() self.__username = ConfUtil.getMQUsername() self.__password = ConfUtil.getMQPassword()