Changeset 3960


Ignore:
Timestamp:
12 Feb 2009, 06:03:29 (16 years ago)
Author:
Henrik Bettermann
Message:

allow '8' and '08' as session strings

Location:
WAeUP_SRP/trunk/skins
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_aaua/getAccommodationInfo.py

    r3690 r3960  
    6666    info['student_status'] = ''
    6767    return info   
     68   
     69try:
     70    arrived = int(student_record.session) == int(session[0])
     71except:
     72    arrived = False
     73    logger.info('%s has invalid session %s' % (student_id,student_record.session))   
    6874
    69 if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and student_record.session == session[0]:
     75if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and arrived:
    7076    info['booking_allowed'] = True
    7177    info['online_payment'] = True
  • WAeUP_SRP/trunk/skins/waeup_accommodation/getAccommodationInfo.py

    r3863 r3960  
    7777              )
    7878
    79 new = student_record.entry_session == session[0]
    80 arrived = student_record.session == session[0]
     79try:
     80    new = int(student_record.entry_session) == int(session[0])
     81except:   
     82    logger.info('%s has invalid entry_session %s' % (student_id,student_record.entry_session))
     83try:
     84    arrived = int(student_record.session) == int(session[0])
     85except:   
     86    logger.info('%s has invalid session %s' % (student_id,student_record.session))   
    8187
    8288level = None
  • WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py

    r3709 r3960  
    2727                '06': ('22200','23700'),
    2828                '07': ('22200','23700'),
     29                '08': ('22200','23700'),               
     30                '1': ('22200','23700'),
     31                '2': ('22200','23700'),
     32                '3': ('22200','23700'),
     33                '4': ('22200','23700'),
     34                '5': ('22200','23700'),
     35                '6': ('22200','23700'),
     36                '7': ('22200','23700'), 
     37                '8': ('22200','23700'),               
    2938                }
    3039pt_fees = {
  • WAeUP_SRP/trunk/skins/waeup_fceokene/getAccommodationInfo.py

    r3690 r3960  
    6767    return info   
    6868
    69 if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and student_record.session == session[0]:
     69try:
     70    arrived = int(student_record.session) == int(session[0])
     71except:
     72    arrived = False
     73    logger.info('%s has invalid session %s' % (student_id,student_record.session))
     74
     75if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and arrived:
    7076    info['booking_allowed'] = True
    7177    info['online_payment'] = True
  • WAeUP_SRP/trunk/skins/waeup_fceoyo/getAccommodationInfo.py

    r3714 r3960  
    6666    info['student_status'] = ''
    6767    return info   
     68   
     69try:
     70    arrived = int(student_record.session) == int(session[0])
     71except:
     72    arrived = False
     73    logger.info('%s has invalid session %s' % (student_id,student_record.session))   
    6874
    69 if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and student_record.session == session[0]:
     75if review_state in ('school_fee_paid','courses_registered', 'courses_validated',) and arrived:
    7076    info['booking_allowed'] = True
    7177    info['online_payment'] = True
  • WAeUP_SRP/trunk/skins/waeup_futminna/getAccommodationInfo.py

    r3843 r3960  
    6969    return info   
    7070
    71 if review_state in ('cleared_and_validated','school_fee_paid','courses_registered', 'courses_validated',) and student_record.session == session[0]:
     71try:
     72    arrived = int(student_record.session) == int(session[0])
     73except:
     74    arrived = False
     75    logger.info('%s has invalid session %s' % (student_id,student_record.session))
     76
     77if review_state in ('cleared_and_validated','school_fee_paid','courses_registered', 'courses_validated',) and arrived:
    7278    info['booking_allowed'] = True
    7379    info['online_payment'] = True
Note: See TracChangeset for help on using the changeset viewer.