def index(request): server_data = [] for i, server in enumerate(ZOOKEEPER_SERVERS): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) return render_to_response('zkadmin/index.html', {'ZOOKEEPER_SERVERS':ZOOKEEPER_SERVERS, 'server_data':server_data})
def index(request): server_data = [] for i, server in enumerate(ZOOKEEPER_SERVERS): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) return render_to_response('zkadmin/index.html', { 'ZOOKEEPER_SERVERS': ZOOKEEPER_SERVERS, 'server_data': server_data })
def index(request): zookeeper_servers = get_zookeeper_servers_as_list() server_data = [] for i, server in enumerate(zookeeper_servers): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) return render_to_response('zkadmin/index.html', {'ZOOKEEPER_SERVERS': zookeeper_servers, 'server_data': server_data})
def index(request): zookeeper_servers = get_zookeeper_servers_as_list() server_data = [] for i, server in enumerate(zookeeper_servers): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) return render_to_response('zkadmin/index.html', { 'ZOOKEEPER_SERVERS': zookeeper_servers, 'server_data': server_data })
def index(request): server_data = [] for i, server in enumerate(ZOOKEEPER_SERVERS): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) rootNode = ZNode() children = rootNode.getExtendedChildren() quotaNode = ZNode("/zookeeper/quota") return render_to_response('zkadmin/index.html', {'ZOOKEEPER_SERVERS':ZOOKEEPER_SERVERS, 'server_data':server_data, 'rootNode':rootNode, 'children':children, 'quotaNode':quotaNode})
def index(request): server_data = [] for i, server in enumerate(ZOOKEEPER_SERVERS): zkserver = ZKServer(server) zkserver.id = i server_data.append(zkserver) rootNode = ZNode() children = rootNode.getExtendedChildren() quotaNode = ZNode("/zookeeper/quota") return render_to_response( 'zkadmin/index.html', { 'ZOOKEEPER_SERVERS': ZOOKEEPER_SERVERS, 'server_data': server_data, 'rootNode': rootNode, 'children': children, 'quotaNode': quotaNode })
def detail(request, server_id): server_data = ZKServer(ZOOKEEPER_SERVERS[int(server_id)]) server_data.id = server_id return render_to_response('zkadmin/detail.html', {'server_data':server_data})
def detail(request, server_id): server_data = ZKServer(ZOOKEEPER_SERVERS[int(server_id)]) server_data.id = server_id return render_to_response('zkadmin/detail.html', {'server_data': server_data})
def detail(request, server_id): server_data = ZKServer(get_zookeeper_server(server_id)) server_data.id = server_id return render_to_response('zkadmin/detail.html', {'server_data': server_data})
def detail(request, server_id): server_data = ZKServer(get_zookeeper_server(server_id)) server_data.id = server_id return render_to_response('zkadmin/detail.html', {'server_data':server_data})