source: WAeUP_SRP/trunk/skins/waeup_student/get_levels_voc.py @ 2215

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

show apply_pume link

and more ...

  • Property svn:keywords set to Id
File size: 253 bytes
RevLine 
[2133]1##parameters=key=None
[2132]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
[2133]11return "Level %s0 (on probation)" % key[:-1]
[2132]12
Note: See TracBrowser for help on using the repository browser.