Exemple #1
0
def check_for_other_users(username):
    for user in USER_NAMES.values():
        if (not user.name.upper() == username.upper()) and user.is_alive():
            logout_lit_review_user()
            raise AnotherUserIsUsingException(user.name, user.last_alive)
Exemple #2
0
 def __init__(self):
     super(LoginException, self).__init__('You are not on the list: ' + str(USER_NAMES.keys()) + '. Contact sgd-programmers to add your name to the list.')