Rev 10703 | Rev 10762 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4819 | czzmrn | 1 | !if $wims_superclass=$empty |
4820 | czzmrn | 2 | !let wims_superclass=$wims_class |
4819 | czzmrn | 3 | !endif |
10640 | bpr | 4 | !set wims_realuser=!defof wims_realuser in wimshome/$wims_sesdir/var.stat |
5 | !set user_supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
||
10651 | bpr | 6 | !set levels=!record 0 of wimshome/log/classes/$wims_class/levels |
7 | !set levelcnt=!linecnt $levels |
||
10640 | bpr | 8 | !set classes=!record 0 of wimshome/log/classes/$wims_class/classes |
9 | !set classcnt=!linecnt $classes |
||
10 | !set progs=!record 0 of wimshome/log/classes/$wims_class/programs |
||
11 | !set progcnt=!linecnt $progs |
||
12 | |||
10651 | bpr | 13 | !!if $classcnt+$progcnt>=1 |
10640 | bpr | 14 | !set courses=!record 0 of wimshome/log/classes/$wims_class/courses |
15 | !set coursecnt=!linecnt $courses |
||
10651 | bpr | 16 | !!endif |
10640 | bpr | 17 | !set icourses=!record 0 of wimshome/log/classes/$wims_class/icourses |
18 | !set icoursecnt=!linecnt $icourses |
||
19 | |||
10651 | bpr | 20 | !let user_supervise=!defof user_supervise in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
10640 | bpr | 21 | !if $wims_user=supervisor and $wims_realuser=supervisor |
10651 | bpr | 22 | !set user_supervise=!column 1 of $levels\ |
23 | $classes\ |
||
24 | $progs\ |
||
10747 | bpr | 25 | $courses\ |
26 | $icourses |
||
27 | !set user_supervise=!nonempty items $user_supervise |
||
10640 | bpr | 28 | !set user_supervise=!makelist $wims_superclass/x for x in $user_supervise |
29 | !endif |
||
30 | |||
4770 | guerimand | 31 | !! ----------- definition des droits de connexion supervisor |
10669 | bpr | 32 | !reset compsup |
4770 | guerimand | 33 | !for cls in $user_supervise |
10703 | bpr | 34 | !if $wims_class isin $cls |
35 | !let tmp=!replace internal / by , in $cls |
||
10747 | bpr | 36 | !if $tmp!=$empty |
37 | !let compsup=!append line $tmp to $compsup |
||
38 | !endif |
||
10703 | bpr | 39 | !endif |
4770 | guerimand | 40 | !next cls |
41 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
10747 | bpr | 42 | !if $user_participate!=$empty |
43 | $U_gotoclass3 |
||
44 | !endif |
||
45 | !let user_supervise_=$user_supervise |
||
46 | !read adm/class/graphclass supervise\ |
||
10669 | bpr | 47 | $compsup |
4770 | guerimand | 48 | |
10674 | bpr | 49 | !let user_participate=!defof user_participate in wimshome/log/classes/$wims_superclass/.users/$wims_realuser |
50 | !if $user_participate=$empty |
||
10747 | bpr | 51 | !exit |
10674 | bpr | 52 | !endif |
10669 | bpr | 53 | !reset compsup |
54 | $U_gotoclass1 |
||
55 | |||
56 | !for cls in $user_participate |
||
10703 | bpr | 57 | !if $wims_class isin $cls |
58 | !let tmp=!replace internal / by , in $cls |
||
10747 | bpr | 59 | !if $tmp!=$empty |
60 | !let compsup=!append line $tmp to $compsup |
||
61 | !endif |
||
10703 | bpr | 62 | !endif |
10669 | bpr | 63 | !next cls |
64 | |||
65 | !let compsup=!sh echo "$compsup" | sort | uniq; |
||
10747 | bpr | 66 | !let user_participate_=$user_participate |
67 | !read adm/class/graphclass participate\ |
||
10669 | bpr | 68 | $compsup |