molten-trunk/molten5/lib/shutdown_dates.rb
def alt_messages
    begin
      num_dates = AppSetting.config("SHUTDOWN_DATES").to_i
    rescue
      num_dates = 0
    end
    the_messages = []
    0.upto(num_dates) { |i| 
      puts i
      begin
        the_message = AppSetting.config("ALT_SHUTDOWN_MESSAGE{i}")
      rescue
        the_message = ''
      end
      if (the_message.length == 0)
        the_message = AppConstants::ALT_SHUTDOWN_NOTICE
      end
      the_messages.push(the_message)
    }
    return the_messages
  end
# Used to manage the shutdown dates from AppConstants and AppSetting. 

Used to manage the shutdown dates from AppConstants and AppSetting.
Used to manage the shutdown dates from AppConstants and AppSetting .
def alt_messages
    begin
      num_dates = AppSetting.config("SHUTDOWN_DATES").to_i
    rescue
      num_dates = 0
    end
    the_messages = []
    0.upto(num_dates) { |i| 
      puts i
      begin
        the_message = AppSetting.config("ALT_SHUTDOWN_MESSAGE{i}")
      rescue
        the_message = ''
      end
      if (the_message.length == 0)
        the_message = AppConstants::ALT_SHUTDOWN_NOTICE
      end
      the_messages.push(the_message)
    }
    return the_messages
  end
def alt_messages begin num_dates = AppSetting . config ( "SHUTDOWN_DATES" ) . to_i rescue num_dates = 0 end the_messages = [ ] 0 . upto ( num_dates ) { | i | puts i begin the_message = AppSetting . config ( "ALT_SHUTDOWN_MESSAGE{i}" ) rescue the_message = '' end if ( the_message . length == 0 ) the_message = AppConstants :: ALT_SHUTDOWN_NOTICE end the_messages . push ( the_message ) } return the_messages end
Used to manage the shutdown dates from AppConstants and AppSetting.
Used to manage the shutdown dates from AppConstants and AppSetting .