예제 #1
0
파일: node.py 프로젝트: e42s/uss
    def GET(self, status="joined"):
        input = web.input()

        nm = []
        try:
            nm = bridge_node.node_srvc_list()
        except Exception, err:
            print "----------- %s, get message error: %s"%(edog_host, str(err))
            raise web.internalerror(message = "%s, get message error"%(edog_host))
            pass
예제 #2
0
파일: node.py 프로젝트: spawn3/uss
    def GET(self, status="joined"):
        input = web.input()

        nm = []
        try:
            nm = bridge_node.node_srvc_list()
        except Exception, err:
            print "----------- %s, get message error: %s" % (edog_host,
                                                             str(err))
            raise web.internalerror(message="%s, get message error" %
                                    (edog_host))
            pass
예제 #3
0
 def GET(self):
     nm = []
     try:
         nm = bridge_node.node_srvc_list()
     except:
         pass
     nodes_in_cluster = []
     if nm:
         for n in nm:
             try:
                 if n['cluster'] < 0 or n['cluster'] == None:
                     continue
             except:
                 continue
             nodes_in_cluster.append(n)
     return render.node_role_list(nodes=nodes_in_cluster)
예제 #4
0
파일: div.py 프로젝트: e42s/uss
 def GET(self):
     nm = []
     try:
         nm = bridge_node.node_srvc_list()
     except:
         pass
     nodes_in_cluster = []
     if nm:
         for n in nm:
             try:
                 if n['cluster'] < 0 or n['cluster'] == None:
                     continue
             except:
                 continue
             nodes_in_cluster.append(n)
     return render.node_role_list(nodes=nodes_in_cluster)