Rev 12569 | Rev 14769 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 12569 | Rev 14049 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | !exit |
12 | !exit |
13 | !endif |
13 | !endif |
14 | 14 | ||
15 | !if $cmd=reply |
15 | !if $cmd=reply |
16 | 16 | ||
17 | new_data=:$seq_title\ |
17 | new_data=:$seq_title\ |
18 | $seq_desc |
18 | $seq_desc |
19 | 19 | ||
20 | !set listdoc=!makelist doc_ i for i=1 to $docpubliccnt |
20 | !set listdoc=!makelist doc_ i for i=1 to $docpubliccnt |
21 | !set listc=!filelist $wims_home/log/classes/$wims_class/doc |
21 | !set listc=!filelist $wims_home/log/classes/$wims_class/doc |
22 | !set listc=!lines2items $listc |
22 | !set listc=!lines2items $listc |
23 | !set listc=!replace internal c by c_$ $ in $listc |
23 | !set listc=!replace internal c by c_$ $ in $listc |
24 | !set listexam=!makelist exam_ i for i=1 to $examcnt |
24 | !set listexam=!makelist exam_ i for i=1 to $examcnt |
25 | !set listsheet=!makelist sheet_ i for i=1 to $sheetcnt |
25 | !set listsheet=!makelist sheet_ i for i=1 to $sheetcnt |
26 | !set listvote=!makelist vote_ i for i=1 to $votecnt |
26 | !set listvote=!makelist vote_ i for i=1 to $votecnt |
27 | !set listtool=!makelist tool_ i for i=1 to $toolcnt |
27 | !set listtool=!makelist tool_ i for i=1 to $toolcnt |
28 | !set listglossary=!makelist glossary_ i for i=1 to $glossarycnt |
28 | !set listglossary=!makelist glossary_ i for i=1 to $glossarycnt |
29 | list=!nospace $listc,$listdoc,$listsheet,$listexam,$listvote,$listtool,$listglossary |
29 | list=!nospace $listc,$listdoc,$listsheet,$listexam,$listvote,$listtool,$listglossary |
30 | list=!nonempty items $list |
30 | list=!nonempty items $list |
31 | list1=debut |
31 | list1=debut |
32 | !for x in $list |
32 | !for x in $list |
33 | list1=!append item $($x) to $list1 |
33 | list1=!append item $($x) to $list1 |
34 | !next |
34 | !next |
35 | list1=$(list1[2..-1]) |
35 | list1=$(list1[2..-1]) |
36 | listcnt=!replace internal ,0, by , in ,$list1, |
36 | listcnt=!replace internal ,0, by , in ,$list1, |
37 | listcnt=!nonempty items $listcnt |
37 | listcnt=!nonempty items $listcnt |
38 | listcnt=!itemcnt $listcnt |
38 | listcnt=!itemcnt $listcnt |
39 | !for j = 1 to $listcnt |
39 | !for j = 1 to $listcnt |
40 | jj=!positionof item $j in $list1 |
40 | jj=!positionof item $j in $list1 |
41 | !if $jj!= |
41 | !if $jj!= |
42 | listfinal=!append item $(list[$jj]) to $listfinal |
42 | listfinal=!append item $(list[$jj]) to $listfinal |
43 | !endif |
43 | !endif |
44 | !next |
44 | !next |
45 | list=!replace internal _ by $ $ in $(listfinal) |
45 | list=!replace internal _ by $ $ in $(listfinal) |
46 | new_data=!append line $list to $new_data |
46 | new_data=!append line $list to $new_data |
47 | !writefile wimshome/log/classes/$wims_class/seq/.sequence$seq $new_data\ |
47 | !writefile wimshome/log/classes/$wims_class/seq/.sequence$seq $new_data\ |
48 | $visible |
48 | $visible |
49 | 49 | ||
50 | s_ =!record 0 of .sequences |
50 | s_ =!record 0 of .sequences |
51 | s_=!line 2 to -1 of s_ |
51 | s_=!line 2 to -1 of s_ |
52 | !if $seq= $[$seq_cnt+1] |
52 | !if $seq= $[$seq_cnt+1] |
53 | seq_cnt=$[$seq_cnt+1] |
53 | seq_cnt=$[$seq_cnt+1] |
54 | !writefile wimshome/log/classes/$wims_class/seq/.sequences $seq_cnt\ |
54 | !writefile wimshome/log/classes/$wims_class/seq/.sequences $seq_cnt\ |
55 | $s_ |
55 | $s_ |
- | 56 | !endif |
|
56 | !endif |
57 | !endif |