Esempio n. 1
0
def update_profile_from_private_key(username):

    user_private_key = private_key.find_one({"username":username})
    user = users.find_one({"username":username})

    if ('backend_server' in user) and (user['backend_server'] == int(LOAD_BALANCER)):
        process_user(user['username'],json.loads(user['profile']))
        user['profile_update_pending'] = False
        users.save(user)
        private_key.remove(user_private_key)
Esempio n. 2
0
def update_profile_from_private_key(username):

    user_private_key = private_key.find_one({"username": username})
    user = users.find_one({"username": username})

    if ('backend_server' in user) and (user['backend_server']
                                       == int(LOAD_BALANCER)):
        process_user(user['username'], json.loads(user['profile']))
        user['profile_update_pending'] = False
        users.save(user)
        private_key.remove(user_private_key)
Esempio n. 3
0
def update_profile(username, profile):

    #update_name does json.dumps internally
    process_user(username, profile)
Esempio n. 4
0
def update_profile(username, profile):

    #update_name does json.dumps internally
    process_user(username, profile)