Changeset 8940
- Timestamp:
- 8 Jul 2012, 06:01:16 (12 years ago)
- 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 425 425 StudentStudyCourseProcessor, self).checkConversion(row, mode=mode) 426 426 # 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')) 432 433 return errs, inv_errs, conv_dict 433 434 -
main/waeup.kofa/trunk/src/waeup/kofa/students/vocabularies.py
r8766 r8940 51 51 # default level range 52 52 levels = [level for level in range(100,1000,10) if level % 100 < 30] 53 levels.append(999) 53 54 return levels 54 55
Note: See TracChangeset for help on using the changeset viewer.