Rev 14537 | Rev 14902 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14297 | guerimand | 1 | !! reactive a freework which is perime |
2 | |||
3 | !! --- testing if freework is perime |
||
4 | !if $activetest!=2 |
||
5 | error=fwnotperime |
||
6 | job=configfw |
||
7 | !changeto $job.proc |
||
8 | !endif |
||
9 | |||
10 | !! testing for enough class capacity |
||
11 | !readproc adm/class/quotafree.proc |
||
12 | !read adm/du $wims_home/log/classes/$wims_class/freeworksdata/$k_/work |
||
13 | nbuser=!recordcnt wimshome/log/classes/$wims_class/.userlist |
||
14 | need=$[$nbuser*$sizelimitfile*0.25-$du] |
||
15 | !if $quota_free-$need <10 |
||
16 | error=notenoughfreespace |
||
17 | job=configfw |
||
18 | !changeto $job.proc |
||
19 | !endif |
||
20 | |||
21 | !! change statut |
||
22 | activetest=1 |
||
23 | update_content=1\ |
||
24 | $class_expiration\ |
||
25 | $title\ |
||
26 | $desc\ |
||
27 | $comment\ |
||
28 | $type\ |
||
29 | $deadline.$timedeadline\ |
||
30 | $soldate.$timesoldate\ |
||
14537 | guerimand | 31 | $sizelimitfile\ |
14747 | guerimand | 32 | $scoring\ |
14537 | guerimand | 33 | $seealltime |
34 | |||
14297 | guerimand | 35 | update_field=$freework |
14537 | guerimand | 36 | update_nbline=11 |
14297 | guerimand | 37 | !read adm/uprecord wimshome/log/classes/$wims_class/freeworks/.freeworks |
38 | |||
39 | success=goodstatut |
||
40 | !if $back=1 |
||
41 | !restart module=home |
||
42 | !else |
||
43 | job=configfw |
||
44 | !reset back |
||
45 | !changeto $job.proc |
||
46 | !endif |
||
47 | |||
48 |