def update_admin_ids(committer_id, admin_usernames):
 admin_ids = []
 for username in admin_usernames:
  user_id = user_services.get_user_id_from_username(username)
  if (user_id is not None):
   admin_ids.append(user_id)
  else:
   raise Exception(('Bad admin username: %s' % username))
 Registry.get_config_property('admin_ids').set_value(committer_id, admin_ids)

def update_admin_ids ( committer_id , admin_usernames ) : admin_ids = [ ] for username in admin_usernames : user_id = user_services . get_user_id_from_username ( username ) if ( user_id is not None ) : admin_ids . append ( user_id ) else : raise Exception ( ( 'Bad admin username: %s' % username ) ) Registry . get_config_property ( 'admin_ids' ) . set_value ( committer_id , admin_ids )
refresh the list of admin user_ids based on the usernames entered .