def _save_user_settings(user_settings):
 user_settings.validate()
 user_models.UserSettingsModel(id=user_settings.user_id, email=user_settings.email, username=user_settings.username, normalized_username=user_settings.normalized_username, last_agreed_to_terms=user_settings.last_agreed_to_terms, last_started_state_editor_tutorial=user_settings.last_started_state_editor_tutorial, last_logged_in=user_settings.last_logged_in, last_edited_an_exploration=user_settings.last_edited_an_exploration, last_created_an_exploration=user_settings.last_created_an_exploration, profile_picture_data_url=user_settings.profile_picture_data_url, user_bio=user_settings.user_bio, subject_interests=user_settings.subject_interests, first_contribution_msec=user_settings.first_contribution_msec, preferred_language_codes=user_settings.preferred_language_codes, preferred_site_language_code=user_settings.preferred_site_language_code).put()

def _save_user_settings ( user_settings ) : user_settings . validate ( ) user_models . UserSettingsModel ( id = user_settings . user_id , email = user_settings . email , username = user_settings . username , normalized_username = user_settings . normalized_username , last_agreed_to_terms = user_settings . last_agreed_to_terms , last_started_state_editor_tutorial = user_settings . last_started_state_editor_tutorial , last_logged_in = user_settings . last_logged_in , last_edited_an_exploration = user_settings . last_edited_an_exploration , last_created_an_exploration = user_settings . last_created_an_exploration , profile_picture_data_url = user_settings . profile_picture_data_url , user_bio = user_settings . user_bio , subject_interests = user_settings . subject_interests , first_contribution_msec = user_settings . first_contribution_msec , preferred_language_codes = user_settings . preferred_language_codes , preferred_site_language_code = user_settings . preferred_site_language_code ) . put ( )
commits a user settings object to the datastore .