Last change
on this file since 1462 was
1460,
checked in by joachim, 18 years ago
|
M skins/waeup_student/getLevelFromResultsCosCode.py
return 2 for course_code "na"
M skins/waeup_accommodation/release_bed.py
M WAeUPTool.py
use getEntryMode in makeData
|
-
Property svn:keywords set to
Id
|
File size:
384 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 1460 2007-02-21 17:39:39Z joachim $ |
---|
11 | lnr = 0 |
---|
12 | for e in list: |
---|
13 | if e.CosCode == "na": |
---|
14 | return 2 |
---|
15 | try: |
---|
16 | cc = int(e.CosCode[3]) |
---|
17 | except: |
---|
18 | continue |
---|
19 | if lnr <= cc: |
---|
20 | lnr = cc |
---|
21 | return lnr |
---|
Note: See
TracBrowser for help on using the repository browser.