Example #1
0
def accept_friend_request():
    new_friend = request.query['friend']
    my_username = login_check()

    connection = pymongo.Connection(connection_string, safe=True)
    friend.accept_friend_request(connection, my_username, new_friend)

    redirect("/main")
Example #2
0
def search_resultts():
	new_friend = bottle.request.query['friend']
	my_username = login_check()
	
	connection = pymongo.Connection(connection_string, safe=True)
	friend.accept_friend_request(connection, my_username, new_friend)
	
	bottle.redirect("/main")
Example #3
0
def accept_friend_request():
    new_friend = request.query['friend']
    my_username = login_check()

    connection = pymongo.Connection(connection_string, safe=True)
    friend.accept_friend_request(connection, my_username, new_friend)

    redirect("/main")
Example #4
0
def search_resultts():
    new_friend = bottle.request.query['friend']
    my_username = login_check()

    connection = pymongo.Connection(connection_string, safe=True)
    friend.accept_friend_request(connection, my_username, new_friend)

    bottle.redirect("/main")