'Takes a single user result item from a \'usersearch\' API call and updates user info.'

def set_search_result_data(self, search_result_item):

    if (self.id != search_result_item['userId']):
        raise InvalidUserException("Tried    to    update    existing    user    with    another    user's    search    result    data    (IDs    don't    match).")
    self.username = search_result_item['username']
    if (not self.personal):
        self.personal = {}
    self.personal['donor'] = search_result_item['donor']
    self.personal['warned'] = search_result_item['warned']
    self.personal['enabled'] = search_result_item['enabled']
    self.personal['class'] = search_result_item['class']
