示例#1
0
 def retrieveAll(self):
     conn = ConnectDB().connect()
     nodes = conn.list("test_nodes").all()
     list = []
     for node in nodes:
         list.append(node["value"])
     return list
示例#2
0
 def retrieveAll():
     client = ConnectDB().connect()
     user_list = []
     user_list_response = client.list('users').all()
     for user_res in user_list_response:
         value = user_res['value']
         user_list.append(value)
     return user_list
示例#3
0
 def retrieveAll():
     client = ConnectDB().connect()
     tag_list = []
     tag_list_response = client.list('tags').all()
     for tag_res in tag_list_response:
         value = tag_res['value']
         tag_list.append(value)
     return tag_list
示例#4
0
 def retrieveAll():
     client = ConnectDB().connect()
     vote_list =[]
     vote_list_response = client.list('votes').all()
     for vote_res in vote_list_response:
         value = vote_res['value']
         vote_list.append(value)
     return vote_list
示例#5
0
文件: user.py 项目: lrcry/ExpertMind
 def retrieveAll():
     client = ConnectDB().connect()
     user_list = []
     user_list_response = client.list('users').all()
     for user_res in user_list_response:
         value = user_res['value']
         user_list.append(value)
     return user_list
示例#6
0
文件: vote.py 项目: lrcry/ExpertMind
 def retrieveAll():
     client = ConnectDB().connect()
     vote_list = []
     vote_list_response = client.list('votes').all()
     for vote_res in vote_list_response:
         value = vote_res['value']
         vote_list.append(value)
     return vote_list
示例#7
0
 def retrieveAll():
     client = ConnectDB().connect()
     add_list =[]
     add_list_response = client.list('adds').all()
     for add_res in add_list_response:
         value = add_res['value']
         add_list.append(value)
     return add_list
示例#8
0
文件: nodes.py 项目: lrcry/ExpertMind
    def retrieveAll(self):
        """ Retrieve all the nodes from database

        :return: array of all the nodes
        """
        conn = ConnectDB().connect()
        nodes = conn.list('test_nodes').all()
        list = []
        for node in nodes:
            list.append(node['value'])
        return list
示例#9
0
    def retrieve_all():
        """
        Retrieve all the events from database
        :return: json array of events
        """
        print 'retrieve all'
        db_conn = ConnectDB().connect()
        events = db_conn.list('node_events').all()
        events_list = []
        for event in events:
            events_list.append(event['value'])

        return events_list