Changeset 3254 for WAeUP_SRP/base/skins/waeup_student
- Timestamp:
- 28 Feb 2008, 13:06:20 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_student/getStudentLevelsVoc.py
r3041 r3254 33 33 ikey = int(key) 34 34 else: 35 r eturn ''35 raise KeyError 36 36 level_nr,repeat = divmod(ikey, 100) 37 37 l = [] 38 38 39 level = context.portal_vocabularies.levels.get("%d00" % level_nr) 39 level = context.portal_vocabularies.levels.get("%d00" % level_nr,None) 40 if level is None: 41 raise KeyError 42 40 43 if level_nr > end_level/100: 41 44 return "%s Spillover" % context.portal_vocabularies.levels.get("%d00" % (level_nr - 1))
Note: See TracChangeset for help on using the changeset viewer.