Changeset 3775


Ignore:
Timestamp:
19 Nov 2008, 09:18:04 (16 years ago)
Author:
Henrik Bettermann
Message:

entry_mode cannot be retrieved from the certtificate because ug_ft has two different entry modes (see #507)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r3765 r3775  
    10381038        da['app_mobile'] = brain.phone
    10391039
    1040         da['entry_mode'] = self._v_certificates[brain.course_admitted]['study_mode']
     1040        # entry_mode cannot be retrieved from the certtificate
     1041        # because ug_ft has two different entry modes
     1042                       
     1043        if brain.entry_mode: 
     1044           da['entry_mode'] = brain.entry_mode 
     1045        elif brain.screening_type == 'pume': 
     1046           da['entry_mode'] = 'ume_ft' 
     1047        elif brain.screening_type == 'pde': 
     1048           da['entry_mode'] = 'de_ft' 
     1049        else:
     1050            da['entry_mode'] = self._v_certificates[brain.course_admitted]['study_mode']
     1051       
     1052        #elif brain.screening_type == 'pce': 
     1053        #   da['entry_mode'] = 'pce' 
     1054        #elif brain.screening_type == 'prence': 
     1055        #   da['entry_mode'] = 'prence' 
     1056        #else: 
     1057        #   da['entry_mode'] = '' 
     1058       
    10411059
    10421060        #da['entry_session'] = entry_session
Note: See TracChangeset for help on using the changeset viewer.