Rev 3261 | Rev 4118 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3261 | obado | 1 | qclass=!translate internal ./,;?* to $ $ in $qclass |
23 | reyssat | 2 | !if $ $ isin $qclass |
3 | qclass= |
||
4 | !endif |
||
5 | |||
6 | !if $qclass=$empty or $rclass=$empty |
||
7 | :badclass |
||
8 | error=bad class |
||
9 | !exit |
||
10 | !endif |
||
11 | |||
12 | classdeffile=wimshome/log/classes/$qclass/.def |
||
391 | obado | 13 | classexofile=wimshome/log/classes/$qclass/.defs |
14 | |||
23 | reyssat | 15 | test=!defof class_defined in $classdeffile |
16 | !if $test!=yes |
||
17 | !goto badclass |
||
18 | !endif |
||
19 | test=!defof class_connections in $classdeffile |
||
20 | test=!items2words $test |
||
21 | test1=!translate internal +,; to $ $ in $test |
||
22 | !if $ident/$rclass notwordof $test1 |
||
23 | error=connection refused by requested class |
||
24 | !exit |
||
25 | !endif |
||
26 | |||
1373 | bpr | 27 | !if $job iswordof modclass delclass adduser moduser deluser recuser \ |
28 | putcsv update and\ |
||
29 | ($ident/$rclass+ notwordof $test and +$ident/$rclass+ notwordof $test) |
||
30 | error=modification of class not allowed |
||
31 | !exit |
||
32 | !endif |
||
391 | obado | 33 | |
3261 | obado | 34 | ############ Tests : A quoi servent les "+" ? ################### |
35 | ##ces plus sont rajoutés quand il y a des droits d'une classe sur l'autre. (BPR) |
||
1373 | bpr | 36 | !!#une classe créée à travers le module raw : il y a un + à la fin dans class_connections |
3261 | obado | 37 | ## A quoi correspondent chacun de ces test ? (OB) |
1373 | bpr | 38 | |
39 | !!# si l'on crée une classe en ajoutant une connection |
||
40 | !!# no no |
||
41 | !!# dans la classe créée myself/2534808+ |
||
42 | !!# dans la classe local yourself/7020853 |
||
43 | |||
44 | !!# yes no |
||
45 | !!# myself/2534808+ |
||
46 | !!# +yourself/6114403 |
||
47 | |||
48 | !!# no yes |
||
49 | !!# myself/2534808# |
||
3261 | obado | 50 | !!# yourself/4729460+ |
1373 | bpr | 51 | |
52 | !!# yes yes |
||
53 | !!# myself/2534808+ |
||
54 | !!# +yourself/1446641+ |
||
3261 | obado | 55 | ######################## FIN des tests |
1373 | bpr | 56 | |
23 | reyssat | 57 | wims_class=$qclass |
58 | wims_user=supervisor |
||
3261 | obado | 59 | wims_class_dir=$wims_home/log/classes/$qclass |