Changeset 8940


Ignore:
Timestamp:
8 Jul 2012, 06:01:16 (12 years ago)
Author:
Henrik Bettermann
Message:

Add 999 to study_levels.

Check conversion of level only if in row.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/batching.py

    r8888 r8940  
    425425            StudentStudyCourseProcessor, self).checkConversion(row, mode=mode)
    426426        # We have to check if current_level is in range of certificate.
    427         if conv_dict.has_key('certificate'):
    428           cert = conv_dict['certificate']
    429           if conv_dict['current_level'] < cert.start_level or \
    430               conv_dict['current_level'] > cert.end_level+120:
    431               errs.append(('current_level','not in range'))
     427        if conv_dict.has_key('certificate') and \
     428            conv_dict.has_key('current_level'):
     429            cert = conv_dict['certificate']
     430            level = conv_dict['current_level']
     431            if level < cert.start_level or level > cert.end_level+120:
     432                errs.append(('current_level','not in range'))
    432433        return errs, inv_errs, conv_dict
    433434
  • main/waeup.kofa/trunk/src/waeup/kofa/students/vocabularies.py

    r8766 r8940  
    5151        # default level range
    5252        levels = [level for level in range(100,1000,10) if level % 100 < 30]
     53        levels.append(999)
    5354    return levels
    5455
Note: See TracChangeset for help on using the changeset viewer.