def get_users_email_preferences(user_ids):
 user_email_preferences_models = user_models.UserEmailPreferencesModel.get_multi(user_ids)
 result = []
 for email_preferences_model in user_email_preferences_models:
  if (email_preferences_model is None):
   result.append(user_domain.UserGlobalPrefs.create_default_prefs())
  else:
   result.append(user_domain.UserGlobalPrefs(email_preferences_model.site_updates, email_preferences_model.editor_role_notifications, email_preferences_model.feedback_message_notifications, email_preferences_model.subscription_notifications))
 return result

def get_users_email_preferences ( user_ids ) : user_email_preferences_models = user_models . UserEmailPreferencesModel . get_multi ( user_ids ) result = [ ] for email_preferences_model in user_email_preferences_models : if ( email_preferences_model is None ) : result . append ( user_domain . UserGlobalPrefs . create_default_prefs ( ) ) else : result . append ( user_domain . UserGlobalPrefs ( email_preferences_model . site_updates , email_preferences_model . editor_role_notifications , email_preferences_model . feedback_message_notifications , email_preferences_model . subscription_notifications ) ) return result
get email preferences for the list of users .