source: WAeUP_SRP/trunk_not_used/skins/waeup_student/get_levels_voc.py @ 2354

Last change on this file since 2354 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
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.