Changeset 2650
- Timestamp:
- 14 Nov 2007, 15:44:32 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentLevelsVoc.py
r2649 r2650 5 5 """ 6 6 student_id = context.getStudentId() 7 end_level = 700 7 8 if student_id: 8 end_level = int(context.students_catalog(id = student_id)[0].end_level)9 else:10 end_level = 60011 9 end_level = context.students_catalog(id = student_id)[0].end_level 10 if end_level.isdigit(): 11 end_level = int(end_level) 12 12 13 if key is None: 13 14 levels = [l for l in range(100,end_level+200,10) … … 27 28 return voc 28 29 29 try:30 if key.isdigit(): 30 31 ikey = int(key) 31 e xcept ValueError:32 else: 32 33 return '' 33 34 level_nr,repeat = divmod(ikey, 100)
Note: See TracChangeset for help on using the changeset viewer.