Rev 12841 | Rev 16091 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3974 | guerimand | 1 | !if $wims_supertype!=0 and $class_typename isitemof portal,group,level |
12411 | bpr | 2 | noarch=yes |
3 | !exit |
||
3974 | guerimand | 4 | !endif |
23 | reyssat | 5 | |
12841 | bpr | 6 | reclist=user,exo,sheet,exam,doc,sup,def,neighbor,log,\ |
7 | forum,score,manual,cdt,vote,livret,seq,motd,userphoto,tool |
||
3974 | guerimand | 8 | !! test of sharing ressources |
9 | !if $class_typename!=program |
||
12411 | bpr | 10 | test_sharing=!defof sharable_all in wimshome/log/classes/$wims_class/neighbors |
3974 | guerimand | 11 | !endif |
23 | reyssat | 12 | |
3974 | guerimand | 13 | !if $test_sharing!=$empty |
12411 | bpr | 14 | !bound job2 within first,download default first |
3974 | guerimand | 15 | !else |
12411 | bpr | 16 | !bound job2 within first,upload,download,restore default first |
3974 | guerimand | 17 | !endif |
18 | |||
19 | !! restriction of restore ressource in portal |
||
4225 | bpr | 20 | !if $job2 iswordof restore upload and $wims_supertype=4 |
12411 | bpr | 21 | reclist_portal=sup,neighbor,log,def |
22 | reclist_program=$(reclist_portal),exo,sheet,exam,doc,vote,livret,seq |
||
23 | reclist_class=$(reclist_portal),user,motd |
||
24 | !! program test |
||
25 | !if /0/// isin $(wims_class)/// |
||
13204 | bpr | 26 | reclist_course=exo,sheet,doc,tool,seq |
12411 | bpr | 27 | !else |
12841 | bpr | 28 | reclist_course=$(reclist_portal),score,manual,cdt,exo,sheet,exam,doc,vote,motd,tool |
12411 | bpr | 29 | !endif |
30 | reclist=$(reclist_$(wims_typename)) |
||
3974 | guerimand | 31 | !endif |
32 | |||
23 | reyssat | 33 | !if $job2=upload and $wims_deposit=$empty |
12411 | bpr | 34 | job2=first |
23 | reyssat | 35 | !endif |
36 | |||
37 | !if $job2!=first |
||
12411 | bpr | 38 | !read arch/$job2.proc |
23 | reyssat | 39 | !endif |
40 | |||
41 | !if $job2 iswordof upload restore and $error!=$empty |
||
12411 | bpr | 42 | job2=first |
23 | reyssat | 43 | !endif |