Rev 16702 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12078 | guerimand | 1 | !readproc adm/class/initclass $wims_class |
2 | !if ($wims_supertype=2 and $type_class=2) or ($wims_supertype=4 and $type_class=4) or $wims_supertype=0 |
||
12411 | bpr | 3 | reclist=exo,sheet,exam,doc,forum,user,score,cdt,livret,userphoto |
12078 | guerimand | 4 | !else |
12411 | bpr | 5 | reclist=exo,sheet,exam,doc,forum,user,score,cdt,livret |
12078 | guerimand | 6 | !endif |
12118 | guerimand | 7 | dirlist=src def score noscore exams sheets .users cdt livret photoboard |
23 | reyssat | 8 | cls=log/classes/$wims_class |
9 | !readdef wimshome/log/classes/$wims_class/neighbors |
||
10 | sharing= |
||
11 | !for r in $sharelist |
||
12411 | bpr | 12 | !if $(sharing_$r)!=$empty |
13 | sharing=!append item $r to $sharing |
||
14 | !endif |
||
23 | reyssat | 15 | !next r |
16 | |||
17 | !read scripts/reccnt.proc cl $cls |
||
18 | |||
19 | !if $clean!=$empty and $cl_testcnt<1 |
||
12411 | bpr | 20 | sel=!replace item all by $reclist in $clean |
21 | sel=!replace item sheet by sheet,exam in $sel |
||
22 | sel=!replace item user by user,score,userphoto in $sel |
||
23 | sel=!listintersect $sel and $reclist |
||
12078 | guerimand | 24 | |
12411 | bpr | 25 | sel=!listcomplement $sharing in $sel |
26 | sel=!listuniq $sel |
||
27 | selw=!items2words $sel |
||
28 | dictionary=$module_dir/arch/recdir |
||
29 | dirs=!exec translator $selw |
||
30 | dirs=!words2items $dirs |
||
31 | dirs=!listuniq $dirs |
||
32 | dirs=!items2words $dirs |
||
33 | !distribute words y y y y y y y y y y y y y y y y y y y y y y y into $sel |
||
16703 | guerimand | 34 | !if / isin $wims_class and $user=y and $class_type=1 |
16702 | guerimand | 35 | !! cleaning user access in case of portal or groupement |
36 | nb=!recordcnt wimshome/log/classes/$wims_class/.userlist |
||
37 | !for k=1 to $nb |
||
38 | dt=!record $k of wimshome/log/classes/$wims_class/.userlist |
||
39 | u=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$(dt[3]) |
||
40 | u=!listcomplement $wims_class in $u |
||
41 | !setdef !set user_participate=$u in wimshome/log/classes/$wims_superclass/.users/$(dt[3]) |
||
42 | !next k |
||
43 | !endif |
||
12411 | bpr | 44 | !if $dirs!=$empty |
45 | !mexec scripts/clean.sh |
||
46 | wims_class_log=Clean $sel by $wims_realuser |
||
47 | !endif |
||
48 | !read scripts/reccnt.proc cl $cls |
||
23 | reyssat | 49 | !endif |