Subversion Repositories wimsdev

Rev

Rev 12460 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
12459 bpr 1
!read oef/default
54 guerimand 2
!if $step=$empty
12411 bpr 3
  !readdef wimshome/log/classes/$wims_class/supervisor
4
  !read oef/default
5
  !bound user_qnum between integer 1 and 9 default $(default_choice[1])
6
  !bound user_qcmlevel between integer 1 and 9 default $(default_choice[2])
7
  !bound user_sepow between 1 and 6 default $(list_sepow[1])
8
  !bound user_expow between 1 and 6 default $(list_expow[1])
9
  !bound user_precw between 0 and 1 default $(list_precw[1])
10
  !if $nw_scoredelay!=$empty
11
    nw_scoredelay=!items2words $nw_scoredelay
12
    !distribute word $nw_scoredelay into l1,l2
13
    !bound l1 between 1 to 2000
14
    !bound l2 between $l1 to 2000 default $l1
15
    nw_scoredelay=$l1,$l2
16
  !endif
17
  !bound user_qcmpresent between integer 2 and 8 default $(default_choice[4])
12460 bpr 18
  !bound user_givegood between 0 and $limit_version default $(default_choice[3])
19
  !bound user_givefeed between 0 and $limit_version default $(default_choice[3])
20
  !bound user_givehint between 0 and $limit_version default $(default_choice[3])
21
  !bound nw_givegood between 0 and $limit_version default $user_nw_givegood
14564 bpr 22
  !bound nw_givehint between -1 and $limit_version default $user_nw_givehint
23
  !bound nw_givefeed between -1 and $limit_version default $user_nw_givefeed
12459 bpr 24
  nw_check_=$nw_check1,$nw_check2
25
  nw_check_=!listintersect $nw_check_ and 1,2
54 guerimand 26
!else
12411 bpr 27
  !bound nw_qnum between integer 1 and 9 default $user_qnum
28
  !bound nw_qcmlevel between 1 and 9 default $user_qcmlevel
29
  nw_scoredelay=!items2words $nw_scoredelay
30
  !distribute word $nw_scoredelay into l1,l2
31
  !if $l1!=$empty or $l2!=$empty
32
    !bound l1 between 1 and 2000
33
    !bound l2 between $l1 and 2000 default $empty
34
    nw_scoredelay=$l1,$l2
35
  !else
36
    nw_scoredelay=$empty
37
  !endif
38
  !bound nw_qcmpresent between 2 and 8 default $user_qcmpresent
12460 bpr 39
  !bound nw_givesol between 0 and $limit_version default $user_givesol
14564 bpr 40
  !bound nw_givefeed between -1 and $limit_version default $user_givefeed
12460 bpr 41
  !bound nw_givegood between 0 and $limit_version default $user_givegood
14564 bpr 42
  !bound nw_givehint between -1 and $limit_version default $user_givehint
12411 bpr 43
  !bound nw_sepow between 1 and 6 default $user_sepow
44
  !bound nw_expow between 1 and 6 default $user_expow
45
  !bound nw_precw between 0 and 1 default $user_precw
12459 bpr 46
  !set nw_check_=$nw_check1,$nw_check2
12411 bpr 47
  !set nw_check_=!nonempty items $nw_check_
12459 bpr 48
  !set nw_check_=!listintersect $nw_check_ and 1,2
9099 bpr 49
 
12411 bpr 50
  !setdef !set user_qnum=$nw_qnum\
54 guerimand 51
!set user_qcmlevel=$nw_qcmlevel\
52
!set user_scoredelay=$nw_scoredelay\
53
!set user_qcmpresent=$nw_qcmpresent\
12460 bpr 54
!set user_givesol=$nw_givesol\
55
!set user_givefeed=$nw_givefeed\
56
!set user_givegood=$nw_givegood\
57
!set user_givehint=$nw_givehint\
9099 bpr 58
!set user_check=$nw_check_\
59
!set user_sepow=$nw_sepow\
60
!set user_expow=$nw_expow\
61
!set user_precw=$nw_precw\
62
in wimshome/log/classes/$wims_class/supervisor
63
 
12411 bpr 64
  !setdef wims_oefdefault_qnum=$nw_qnum\
54 guerimand 65
wims_oefdefault_qcmlevel=$nw_qcmlevel\
66
wims_oefdefault_scoredelay=$nw_scoredelay\
67
wims_oefdefault_qcmpresent=$nw_qcmpresent\
12460 bpr 68
wims_oefdefault_sol=$nw_givesol\
69
wims_oefdefault_feed=$nw_givefeed\
70
wims_oefdefault_good=$nw_givegood\
71
wims_oefdefault_hint=$nw_givehint\
9099 bpr 72
wims_oefdefault_check=$nw_check_\
73
wims_oefdefault_expow=$nw_expow\
74
wims_oefdefault_sepow=$nw_sepow\
75
wims_oefdefault_precw=$nw_precw\
76
in wimshome/sessions/$wims_session/var.stat
7684 bpr 77
 
12411 bpr 78
  !readdef wimshome/log/classes/$wims_class/supervisor
9099 bpr 79
 
7684 bpr 80
!endif