File: addtest

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (33 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

!if $wims_superclass=$empty or $wims_user!=supervisor or $wims_read_parm=$empty
  !exit
!endif

ac_prog=$wims_read_parm
ac_Prog=$wims_superclass/$ac_prog
ac_Prog_=wimshome/log/classes/$ac_Prog

!readdef $ac_Prog_/.def
!readdef $ac_Prog_/supervisor
cadd_description=$class_description - test
cadd_superclass=$wims_superclass
cadd_secure=$sechost
cadd_parent=$wims_superclass/$ac_prog
cadd_type=1
cadd_typename=course

!read adm/class/addclass $ac_Prog/0

!setdef n_part=$ac_Prog\
n_sup=$ac_Prog in $ac_Prog_/0/neighbors
ac_n=!defof n_part\
n_sup in $ac_Prog_/neighbors
!distribute lines $ac_n into n_part, n_sup
n_part=!listunion $n_part and $ac_Prog/0
n_sup =!listunion $n_sup  and $ac_Prog/0
!setdef n_part=$n_part\
n_sup=$n_sup in $ac_Prog_/neighbors

!read adm/class/addshare $ac_Prog, $ac_Prog/0\
  sup