Rev 11962 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !if $formula=$empty |
||
11114 | obado | 3 | job= |
4 | !exit |
||
23 | reyssat | 5 | !endif |
6 | |||
11114 | obado | 7 | !set min_maxscore = 1 |
8 | !set max_maxscore = 1000 |
||
9 | |||
12146 | guerimand | 10 | !set tmp=!defof DF_SEVERITY\ |
11 | MAX_WEIGHT\ |
||
12 | MIN_WEIGHT in wimshome/public_html/bases/sys/define.conf |
||
13 | !distribute line $tmp into tmp,max_weight,min_weight |
||
14 | !distribute words $tmp into tmp_w,tmp_s,tmp_ss |
||
15 | |||
11114 | obado | 16 | !if $formula=prep |
23 | reyssat | 17 | !exit |
11114 | obado | 18 | !endif |
19 | |||
20 | !reset formula reg |
||
21 | reg= |
||
22 | !for i=1 to $totsheets |
||
23 | !bound w$i between $min_weight and $max_weight default $tmp_w |
||
10922 | bpr | 24 | !bound s$i between integer 0 and 6 default $tmp_s |
25 | !bound ss$i between integer 0 and 2 default $tmp_ss |
||
7665 | bpr | 26 | reg=!append line $(w$i) $(s$i) $(ss$i) to $reg |
11114 | obado | 27 | !next i |
28 | !reset tmp tmp_w tmp_s tmp_ss |
||
29 | !bound maxscore between integer $min_maxscore and $max_maxscore default 10 |
||
30 | scoremax=$maxscore |
||
31 | defaultformula=$reg |
||
32 | !writefile wimshome/log/classes/$wims_class/sheets/.severity $maxscore\ |
||
23 | reyssat | 33 | $reg |
34 | |||
35 | reg= |
||
36 | !for i=1 to $totexams |
||
11114 | obado | 37 | !bound ew$i between 0 and 100000 default 1 |
38 | reg=!append line $(ew$i) to $reg |
||
23 | reyssat | 39 | !next i |
40 | !writefile wimshome/log/classes/$wims_class/exams/.eseverity $reg |
||
41 | |||
11114 | obado | 42 | !read adm/class/sheetweights |