Rev 12080 | Rev 12841 | 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 | |
12080 | guerimand | 6 | reclist=user,exo,sheet,exam,doc,sup,def,neighbor,log,forum,score,manual,cdt,vote,livret,seq,motd,userphoto |
3974 | guerimand | 7 | !! test of sharing ressources |
8 | !if $class_typename!=program |
||
12411 | bpr | 9 | test_sharing=!defof sharable_all in wimshome/log/classes/$wims_class/neighbors |
3974 | guerimand | 10 | !endif |
23 | reyssat | 11 | |
3974 | guerimand | 12 | !if $test_sharing!=$empty |
12411 | bpr | 13 | !bound job2 within first,download default first |
3974 | guerimand | 14 | !else |
12411 | bpr | 15 | !bound job2 within first,upload,download,restore default first |
3974 | guerimand | 16 | !endif |
17 | |||
18 | !! restriction of restore ressource in portal |
||
4225 | bpr | 19 | !if $job2 iswordof restore upload and $wims_supertype=4 |
12411 | bpr | 20 | reclist_portal=sup,neighbor,log,def |
21 | reclist_program=$(reclist_portal),exo,sheet,exam,doc,vote,livret,seq |
||
22 | reclist_class=$(reclist_portal),user,motd |
||
23 | !! program test |
||
24 | !if /0/// isin $(wims_class)/// |
||
25 | reclist_course=exo,sheet,doc |
||
26 | !else |
||
27 | reclist_course=$(reclist_portal),score,manual,cdt,exo,sheet,exam,doc,vote,motd |
||
28 | !endif |
||
29 | reclist=$(reclist_$(wims_typename)) |
||
3974 | guerimand | 30 | !endif |
31 | |||
23 | reyssat | 32 | !if $job2=upload and $wims_deposit=$empty |
12411 | bpr | 33 | job2=first |
23 | reyssat | 34 | !endif |
35 | |||
36 | !if $job2!=first |
||
12411 | bpr | 37 | !read arch/$job2.proc |
23 | reyssat | 38 | !endif |
39 | |||
40 | !if $job2 iswordof upload restore and $error!=$empty |
||
12411 | bpr | 41 | job2=first |
23 | reyssat | 42 | !endif |