#NEWLINE# def clients( request , host ) : #NEWLINE# #INDENT# parts = host . split ( ':' ) #NEWLINE# if ( len ( parts ) != 2 ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# ( host , port ) = parts #NEWLINE# zks = ZooKeeperStats ( host , port ) #NEWLINE# clients = zks . get_clients ( ) #NEWLINE# return render ( 'clients.mako' , request , dict ( host = host , port = port , clients = clients ) )