#NEWLINE# def tree( request , id , path ) : #NEWLINE# #INDENT# cluster = get_cluster_or_404 ( id ) #NEWLINE# zk = ZooKeeper ( cluster [ 'rest_gateway' ] ) #NEWLINE# znode = zk . get ( path ) #NEWLINE# children = sorted ( zk . get_children_paths ( path ) ) #NEWLINE# return render ( 'tree.mako' , request , dict ( cluster = id , path = path , znode = znode , children = children ) )