Changeset 2959


Ignore:
Timestamp:
18 Dec 2007, 15:23:43 (17 years ago)
Author:
Henrik Bettermann
Message:

do not admit students without sex attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2950 r2959  
    771771            logger.info('certificate %s not found for %s' % (brain.course_admitted,brain.reg_no))
    772772            return
     773        if brain.sex not in (True,False):
     774            logger.info('sex of %s not available' % (brain.reg_no))
     775            return           
    773776        student_id = self.generateStudentId('?')
    774777        students_folder.invokeFactory('Student', student_id)
     
    806809            da['entry_mode'] = 'de_ft'
    807810        elif brain.screening_type == 'pce':
    808             da['entry_mode'] = 'pce'       
     811            da['entry_mode'] = 'pce'
    809812        elif brain.screening_type == 'prence':
    810             da['entry_mode'] = 'prence'                     
     813            da['entry_mode'] = 'prence'
    811814        else:
    812815            da['entry_mode'] = ''
Note: See TracChangeset for help on using the changeset viewer.