Changeset 3869
- Timestamp:
- 22 Jan 2009, 22:15:21 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_student/getStudentLevelsVoc.py
r3254 r3869 15 15 if key is None: 16 16 levels = [l for l in range(0,end_level+200,10) 17 if l % 100 < 30 and l < end_level + 1 10]17 if l % 100 < 30 and l < end_level + 120] 18 18 voc = [('','')] 19 19 for l in levels: 20 20 level_nr,repeat = divmod(l, 100) 21 if level_nr > end_level/100: 21 if level_nr > end_level/100 and repeat: 22 voc += ("%s" % l,"%s (2nd spillover)" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))), 23 elif level_nr > end_level/100: 22 24 voc += ("%s" % l,"%s (spillover)" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))), 23 25 elif repeat > 0: … … 41 43 raise KeyError 42 44 43 if level_nr > end_level/100: 45 if level_nr > end_level/100 and repeat: 46 return "%s 2nd Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1)) 47 elif level_nr > end_level/100: 44 48 return "%s Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1)) 45 49
Note: See TracChangeset for help on using the changeset viewer.