Changeset 4099 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
29 Apr 2009, 13:52:09 (16 years ago)
Author:
Henrik Bettermann
Message:

make application deadlines configurable

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/apply_admission.py

    r3836 r4099  
    2727current = DateTime.DateTime()
    2828pr = context.portal_registration
     29pprops = context.portal_properties
    2930request = REQUEST
    3031
     
    3940headings['prence'] = 'Apply for Pre-NCE Programme (2007/2008)! '
    4041headings['pce'] = 'Apply for PCE Screening (2007/2008)! '
    41 headings['cest'] = 'Apply for Part-Time Degree Programmes (2008/2009)! '
     42headings['cest'] = 'Apply for Part-Time Degree or Diploma Programmes (2008/2009)! '
    4243#headings['cest'] = 'Apply for Certificate in Early Child Health (2008/2009)! '
    4344headings['sandwich'] = 'Apply for Part Time Degree in Education (2007/2008)! '
     
    6162#deaddates['pume'] = config_params['dead_pume']
    6263
    63 deaddates['pume'] = DateTime.DateTime('2008/08/19 07:00')
    64 deaddates['pde'] = DateTime.DateTime('2008/10/02 23:59')
     64deaddates['pume'] = DateTime.DateTime(pprops.date1)
     65deaddates['pde'] = DateTime.DateTime(pprops.date2)
    6566deaddates['prence'] = DateTime.DateTime('2007/12/4 23:59')
    6667deaddates['pce'] = DateTime.DateTime('2007/08/12 23:59')
    67 deaddates['cest'] = DateTime.DateTime('2009/01/26 23:59')
    68 deaddates['sandwich'] = DateTime.DateTime('2008/09/12 23:59')
     68deaddates['cest'] = DateTime.DateTime(pprops.date3)
     69deaddates['sandwich'] = DateTime.DateTime(pprops.date4)
    6970#deaddates['pt'] = DateTime.DateTime('2007/12/24 23:59')
    7071configuration += ('deaddate',deaddates),
    7172
    7273deadline = {}
    73 #deadline['pume'] = '[Date of PUME Deadline]'
    7474for sct in screening_types:
    7575    deadline[sct] = deaddates[sct].strftime('%A, %d. %B %Y')
    76 # deadline['pde'] = 'Sunday, 4th November 2007'
    77 # deadline['prence'] = '[Date of PRENCE Deadline]'
    78 # deadline['pce'] = '[Date of PCE Deadline]'
    79 # deadline['cest'] = '[Date of CEST Deadline]'
    80 # deadline['pt'] = '[Date of PT Deadline]'
    8176configuration += ('deadline',deadline),
    8277
Note: See TracChangeset for help on using the changeset viewer.