source: WAeUP_SRP/branches/joachim-event-branch/skins/waeup_student/getLevelFromResultsCosCode.py @ 11110

Last change on this file since 11110 was 1463, checked in by Henrik Bettermann, 18 years ago

verdicts according to Maryannes's email

  • Property svn:keywords set to Id
File size: 385 bytes
Line 
1## Script (Python) "getLevelFromResultsList"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=list
8##title=
9##
10# $Id: getLevelFromResultsCosCode.py 1463 2007-02-21 21:02:25Z henrik $
11lnr = 0
12for e in list:
13    if e.CosCode == "N/A":
14        return 2
15    try:
16        cc = int(e.CosCode[3])
17    except:
18        continue
19    if lnr <= cc:
20        lnr = cc
21return lnr
Note: See TracBrowser for help on using the repository browser.