def get_users_settings(user_ids):
 user_settings_models = user_models.UserSettingsModel.get_multi(user_ids)
 result = []
 for (ind, model) in enumerate(user_settings_models):
  if (user_ids[ind] == feconf.SYSTEM_COMMITTER_ID):
   result.append(UserSettings(feconf.SYSTEM_COMMITTER_ID, email=feconf.SYSTEM_EMAIL_ADDRESS, username='admin', last_agreed_to_terms=datetime.datetime.utcnow()))
  elif model:
   result.append(UserSettings(model.id, email=model.email, username=model.username, last_agreed_to_terms=model.last_agreed_to_terms, last_started_state_editor_tutorial=model.last_started_state_editor_tutorial, last_logged_in=model.last_logged_in, last_edited_an_exploration=model.last_edited_an_exploration, last_created_an_exploration=model.last_created_an_exploration, profile_picture_data_url=model.profile_picture_data_url, user_bio=model.user_bio, subject_interests=model.subject_interests, first_contribution_msec=model.first_contribution_msec, preferred_language_codes=model.preferred_language_codes, preferred_site_language_code=model.preferred_site_language_code))
  else:
   result.append(None)
 return result

def get_users_settings ( user_ids ) : user_settings_models = user_models . UserSettingsModel . get_multi ( user_ids ) result = [ ] for ( ind , model ) in enumerate ( user_settings_models ) : if ( user_ids [ ind ] == feconf . SYSTEM_COMMITTER_ID ) : result . append ( UserSettings ( feconf . SYSTEM_COMMITTER_ID , email = feconf . SYSTEM_EMAIL_ADDRESS , username = 'admin' , last_agreed_to_terms = datetime . datetime . utcnow ( ) ) ) elif model : result . append ( UserSettings ( model . id , email = model . email , username = model . username , last_agreed_to_terms = model . last_agreed_to_terms , last_started_state_editor_tutorial = model . last_started_state_editor_tutorial , last_logged_in = model . last_logged_in , last_edited_an_exploration = model . last_edited_an_exploration , last_created_an_exploration = model . last_created_an_exploration , profile_picture_data_url = model . profile_picture_data_url , user_bio = model . user_bio , subject_interests = model . subject_interests , first_contribution_msec = model . first_contribution_msec , preferred_language_codes = model . preferred_language_codes , preferred_site_language_code = model . preferred_site_language_code ) ) else : result . append ( None ) return result
gets domain objects representing the settings for the given user_ids .