old_contents: from uber.common import *
  
  
  @entry_point
  def print_config():
      """
      print all config values to stdout, used for debugging / status checking
      useful if you want to verify that Ubersystem has pulled in the INI values you think it has.
      """
      from uber.config import _config
      pprint(_config.dict())
  
  
  @entry_point
  def resave_all_attendees_and_groups():
      Session.initialize_db(modify_tables=True)
      with Session() as session:
          print("re-saving all attendees....")
          [a.presave_adjustments() for a in session.query(Attendee).all()]
          print("re-saving all groups....")
          [g.presave_adjustments() for g in session.query(Group).all()]
          print("Done!")
  
  
  @entry_point
  def insert_admin():
      Session.initialize_db(modify_tables=True)
      with Session() as session:
          if session.insert_test_admin_account():
              print("Test admin account created successfully")
          else:
              print("Not allowed to create admin account at this time")
  
  
  @entry_point
  def reset_uber_db():
      assert c.DEV_BOX, 'reset_uber_db is only available on development boxes'
      Session.initialize_db(drop=True, modify_tables=True)
      insert_admin()
  
new_contents: from uber.common import *
  
  
  @entry_point
  def print_config():
      """
      print all config values to stdout, used for debugging / status checking
      useful if you want to verify that Ubersystem has pulled in the INI values you think it has.
      """
      from uber.config import _config
      pprint(_config.dict())
  
  
  @entry_point
  def resave_all_attendees_and_groups():
      """
      Re-save all attendees and groups in the database. this is useful to re-run all validation code
      and allow re-calculation of automatically calculated values.  This is sometimes needed when
      doing database changes and we need to re-save everything.
  
      SAFETY: This -should- be safe to run at any time, but, for safety sake, recommend turning off
      any running sideboard servers before running this command.
      """
      Session.initialize_db(modify_tables=True)
      with Session() as session:
          print("Re-saving all attendees....")
          [a.presave_adjustments() for a in session.query(Attendee).all()]
          print("Re-saving all groups....")
          [g.presave_adjustments() for g in session.query(Group).all()]
          print("Saving resulting changes to database...")
      print("Done!")
  
  
  @entry_point
  def insert_admin():
      Session.initialize_db(modify_tables=True)
      with Session() as session:
          if session.insert_test_admin_account():
              print("Test admin account created successfully")
          else:
              print("Not allowed to create admin account at this time")
  
  
  @entry_point
  def reset_uber_db():
      assert c.DEV_BOX, 'reset_uber_db is only available on development boxes'
      Session.initialize_db(drop=True, modify_tables=True)
      insert_admin()
  
subject: print more accurate messages when re-saving