Rev 5210 | Rev 7354 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5210 | Rev 6431 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | sheetcnt=!linecnt $sheets |
24 | sheetcnt=!linecnt $sheets |
25 | !ifval $sheetcnt=0 |
25 | !ifval $sheetcnt=0 |
26 | error=no_sheet |
26 | error=no_sheet |
27 | !exit |
27 | !exit |
28 | !endif |
28 | !endif |
- | 29 | test_transl=!module translation_language $dir |
|
- | 30 | !if $lang iswordof $test_transl |
|
- | 31 | tr_lang=yes |
|
29 | title=!module |
32 | title=!module title_$lang $dir |
30 | desc=!module |
33 | desc=!module description_$lang $dir |
- | 34 | !endif |
|
- | 35 | !default title=!module title $dir |
|
- | 36 | !default desc=!module description $dir |
|
31 | cat=!module category $dir |
37 | cat=!module category $dir |
32 | !if exercise notin $cat and oef notin $cat |
38 | !if exercise notin $cat and oef notin $cat |
33 | error=not_exo |
39 | error=not_exo |
34 | !exit |
40 | !exit |
35 | !endif |
41 | !endif |
Line 42... | Line 48... | ||
42 | error=insert_fail |
48 | error=insert_fail |
43 | !exit |
49 | !exit |
44 | !endif |
50 | !endif |
45 | !if $picksheet=$empty |
51 | !if $picksheet=$empty |
46 | error=no_pick |
52 | error=no_pick |
47 | !exit |
53 | !exit |
48 | !endif |
54 | !endif |
49 | picksheet=$[floor($picksheet)] |
55 | picksheet=$[floor($picksheet)] |
50 | !if $picksheet=NaN or $picksheet<1 or $picksheet>min(64,$sheettot) |
56 | !if $picksheet=NaN or $picksheet<1 or $picksheet>min(64,$sheettot) |
51 | error=bad_sheet |
57 | error=bad_sheet |
52 | !exit |
58 | !exit |
53 | !endif |
59 | !endif |
Line 69... | Line 75... | ||
69 | !if $scoring=yes |
75 | !if $scoring=yes |
70 | require=$[$require] |
76 | require=$[$require] |
71 | weight=$[$weight] |
77 | weight=$[$weight] |
72 | !if NaN isin $require |
78 | !if NaN isin $require |
73 | require=0 |
79 | require=0 |
74 | !endif |
80 | !endif |
75 | !if NaN isin $weight |
81 | !if NaN isin $weight |
76 | weight=0 |
82 | weight=0 |
77 | !endif |
83 | !endif |
78 | !bound require between 0,1000 default 0 |
84 | !bound require between 0,1000 default 0 |
79 | !bound weight between 0,10 default 0 |
85 | !bound weight between 0,10 default 0 |
Line 95... | Line 101... | ||
95 | $idesc |
101 | $idesc |
96 | 102 | ||
97 | exocnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$picksheet |
103 | exocnt=!recordcnt wimshome/log/classes/$wims_class/sheets/.sheet$picksheet |
98 | wims_module_log=class $class: add No$exocnt to worksheet $picksheet |
104 | wims_module_log=class $class: add No$exocnt to worksheet $picksheet |
99 | !endif |
105 | !endif |
100 | - |