Rev 16568 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
16542 | guerimand | 1 | !! not allow for other than type=3 |
2 | !if $type!=3 |
||
3 | job=configfw |
||
4 | !changeto $job.proc |
||
5 | !endif |
||
6 | |||
7 | !if $putiworkco!=0 or $seealltime!=1 |
||
8 | error=putworknotallow |
||
9 | job=configfw |
||
10 | !changeto $job.proc |
||
11 | !endif |
||
12 | |||
13 | !! -------- check for valid student (in class) |
||
14 | !bound userv within $ulist default $empty |
||
15 | !if $userv=$empty |
||
16 | error=putworkusernotexists |
||
17 | job=configfw |
||
18 | !changeto $job.proc |
||
19 | !endif |
||
20 | |||
21 | |||
22 | !! -------- test si la copie de l'etudiant existe (pas de depot de correction si pas de copie) |
||
23 | |||
24 | !readproc proc/findfile3.proc $freework,$userv |
||
25 | !if $output=$empty |
||
26 | error=studentwithoutfw |
||
27 | job=configfw |
||
28 | !changeto $job.proc |
||
29 | !endif |
||
30 | |||
17677 | czzmrn | 31 | !! remarks |
32 | remarkmax=1000 |
||
16542 | guerimand | 33 | !! -------- save remark |
17677 | czzmrn | 34 | !! before saving check consistency |
35 | tmplength=!charcnt $remark |
||
36 | !if $tmplength > $remarkmax |
||
37 | remark=!detag $remark |
||
38 | error=truncatedtext |
||
39 | !endif |
||
40 | remark=!char 1 to $remarkmax of $remark |
||
16542 | guerimand | 41 | remark=!replace internal : by : in $remark |
16568 | guerimand | 42 | test=!nospace $remark |
43 | !if $test=$empty |
||
44 | !sh rm -f $wims_home/log/classes/$wims_class/freeworksdata/$freework/co/.$userv $remark |
||
45 | !else |
||
46 | !if $remark!=$empty |
||
47 | !writefile wimshome/log/classes/$wims_class/freeworksdata/$freework/co/.$userv $remark |
||
48 | !endif |
||
49 | !endif |
||
16542 | guerimand | 50 | |
16568 | guerimand | 51 | !! -------- save finalremark |
17677 | czzmrn | 52 | tmplength=!charcnt $finalremark |
53 | !if $tmplength > $remarkmax |
||
54 | finalremark=!detag $finalremark |
||
55 | error=truncatedtext |
||
56 | !endif |
||
57 | finalremark=!char 1 to $remarkmax of $finalremark |
||
16568 | guerimand | 58 | finalremark=!replace internal : by : in $finalremark |
59 | test=!nospace $finalremark |
||
60 | !if $test=$empty |
||
61 | !sh rm -f $wims_home/log/classes/$wims_class/freeworksdata/$freework/co/$userv $finalremark; |
||
62 | !else |
||
63 | !if $finalremark!=$empty |
||
64 | !writefile wimshome/log/classes/$wims_class/freeworksdata/$freework/co/$userv $finalremark |
||
65 | !endif |
||
66 | !endif |
||
67 | |||
68 | |||
16542 | guerimand | 69 | job=viewuser3 |
70 | !changeto $job.proc |