old_contents: #!/usr/bin/python
  #
  # Copyright 2011 Friday Film Club. All Rights Reserved.
  
  """Main views of the Friday Film Club app."""
  
  __author__ = 'adamjmcgrath@gmail.com (Adam McGrath)'
  
  import os
  import datetime
  from dateutil import relativedelta
  import math
  
  DEBUG = os.environ.get('SERVER_SOFTWARE', '').startswith('Dev')
  START_DATE = datetime.datetime(2013, 12, 20, 3)
  WEEKS_PER_SEASON = 12
  DAYS_PER_WEEK = 7
  
  
  def get_week_season_from_date(date):
    days = relativedelta.relativedelta(date, START_DATE).days
    weeks = math.ceil(days / float(DAYS_PER_WEEK))
    season = math.ceil(weeks / WEEKS_PER_SEASON)
    week = weeks - ((season - 1) * WEEKS_PER_SEASON)
    return (int(season), int(week))
  
  def get_current_week_season():
    return get_week_season_from_date(datetime.datetime.now())
new_contents: #!/usr/bin/python
  #
  # Copyright 2011 Friday Film Club. All Rights Reserved.
  
  """Main views of the Friday Film Club app."""
  
  __author__ = 'adamjmcgrath@gmail.com (Adam McGrath)'
  
  import os
  import datetime
  from dateutil import relativedelta
  import math
  
  DEBUG = os.environ.get('SERVER_SOFTWARE', '').startswith('Dev')
  START_DATE = datetime.datetime(2013, 12, 20, 3)
  WEEKS_PER_SEASON = 12
  DAYS_PER_WEEK = 7
  
  
  def get_season_week_from_date(date):
    days = relativedelta.relativedelta(date, START_DATE).days
    weeks = math.ceil(days / float(DAYS_PER_WEEK))
    season = math.ceil(weeks / WEEKS_PER_SEASON)
    week = weeks - ((season - 1) * WEEKS_PER_SEASON)
    return (int(season), int(week))
  
  def get_current_season_week():
    return get_season_week_from_date(datetime.datetime.now())
  
  def get_next_season_week():
    (season, week) = get_current_season_week()
    week += 1
    if week > WEEKS_PER_SEASON:
      season += 1
      week = 1
    return (season, week)
  
subject: add get_next_season_week see #89