source: WAeUP_SRP/base/skins/waeup_student/get_levels_voc.py_deprecated @ 2458

Last change on this file since 2458 was 2458, checked in by Henrik Bettermann, 17 years ago

add deprecated files

File size: 306 bytes
Line 
1##parameters=key=None
2# $Id: get_levels_voc.py 2133 2007-08-20 21:38:24Z henrik $
3"""
4Return the levels as an vocabulary
5
6"""
7if key is None:
8    return [("%s" % l,"Level %s" % l) for l in range(100,700,100)]
9if not int(key) % 100:
10    return "Level %s" % key
11return "Level %s0 (on probation)" % key[:-1]
12
Note: See TracBrowser for help on using the repository browser.