def get_user_settings_from_username(username):
 user_model = user_models.UserSettingsModel.get_by_normalized_username(UserSettings.normalize_username(username))
 if (user_model is None):
  return None
 else:
  return get_user_settings(user_model.id)

def get_user_settings_from_username ( username ) : user_model = user_models . UserSettingsModel . get_by_normalized_username ( UserSettings . normalize_username ( username ) ) if ( user_model is None ) : return None else : return get_user_settings ( user_model . id )
gets the user settings for a given username .