source:
WAeUP_SRP/base/skins/waeup_student/get_levels_voc.py_deprecated
@
2602
Last change on this file since 2602 was 2458, checked in by , 17 years ago | |
---|---|
File size: 306 bytes |
Line | |
---|---|
1 | ##parameters=key=None |
2 | # $Id: get_levels_voc.py 2133 2007-08-20 21:38:24Z henrik $ |
3 | """ |
4 | Return the levels as an vocabulary |
5 | |
6 | """ |
7 | if key is None: |
8 | return [("%s" % l,"Level %s" % l) for l in range(100,700,100)] |
9 | if not int(key) % 100: |
10 | return "Level %s" % key |
11 | return "Level %s0 (on probation)" % key[:-1] |
12 |
Note: See TracBrowser for help on using the repository browser.