Rev 18049 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
9629 | guerimand | 1 | !if $nbsheet>=$max_sheets |
18010 | bpr | 2 | error=toomuchsheet |
3 | !exit |
||
9629 | guerimand | 4 | !endif |
12338 | bpr | 5 | !if $type=tool |
6 | !exit |
||
7 | !endif |
||
9629 | guerimand | 8 | docu=!record $sdoc of wimshome/log/classes/$wims_class/doc/.docindex |
9633 | guerimand | 9 | autosheet=!line 7 of $docu |
10 | !if $autosheet!=$empty |
||
12330 | bpr | 11 | !exit |
9633 | guerimand | 12 | !endif |
9629 | guerimand | 13 | dir=!line 1 of $docu |
9682 | bpr | 14 | |
15 | donnees=!sh grep -a primitives.phtml $wims_home/public_html/modules/$dir/doc/1/*.def | grep exercise |
||
9629 | guerimand | 16 | nbexo=!linecnt $donnees |
17 | donsh=$empty |
||
13363 | guerimand | 18 | already=$empty |
9629 | guerimand | 19 | !for k=1 to $nbexo |
12330 | bpr | 20 | exodon=!line $k of $donnees |
21 | test=!item 2 of $exodon |
||
22 | !if exercise iswordof $test |
||
23 | liniparm=!item -2 of $exodon |
||
18049 | bpr | 24 | liniparm=!replace internal %2F by / in $liniparm |
18051 | bpr | 25 | liniparm=!replace internal &+ by & in $liniparm |
12330 | bpr | 26 | title=!item -1 of $exodon |
18010 | bpr | 27 | !! look at scripts/docu/primitives/target.phtml if the following is changed |
18051 | bpr | 28 | !read getparm $liniparm module |
12330 | bpr | 29 | test=!getdef category in wimshome/public_html/modules/$get_module/INDEX |
30 | !if exercise isin $test or oef isin $test |
||
18051 | bpr | 31 | !read docu/docsh $liniparm |
32 | !set liniparm=$docsh_out |
||
13363 | guerimand | 33 | !if $(liniparm),$get_module notlineof $already |
34 | already=!append line $(liniparm),$get_module to $already |
||
35 | helpcmd=!item 1 of $exodon |
||
36 | helpcmd=!replace internal : by , in $helpcmd |
||
37 | helpcmd=!replace internal / by , in $(helpcmd[1]) |
||
38 | helpcmd=!replace internal . by , in $(helpcmd[-1]) |
||
39 | tmp=:$get_module\ |
||
9644 | guerimand | 40 | $liniparm\ |
9629 | guerimand | 41 | 10\ |
42 | 1\ |
||
43 | $title\ |
||
44 | \ |
||
9674 | guerimand | 45 | \ |
46 | \ |
||
47 | module=$dir&block=$(helpcmd[1])&cmd=new,10 |
||
9629 | guerimand | 48 | |
13363 | guerimand | 49 | donsh=!append line $tmp to $donsh |
50 | !endif |
||
12330 | bpr | 51 | !endif |
9644 | guerimand | 52 | !endif |
9629 | guerimand | 53 | !next k |
54 | |||
9644 | guerimand | 55 | !if $donsh=$empty |
12338 | bpr | 56 | error=noexo |
57 | wims_menu_items=!append line back2,1,cmd=reply&job=prop to $wims_menu_items |
||
58 | !exit |
||
9644 | guerimand | 59 | !endif |
60 | |||
9629 | guerimand | 61 | autosheet=$[$nbsheet+1] |
9644 | guerimand | 62 | |
9629 | guerimand | 63 | !writefile wimshome/log/classes/$wims_class/sheets/.sheet$autosheet $donsh |
9672 | guerimand | 64 | |
65 | title=!line 3 of $docu |
||
66 | desc=!line 4 of $docu |
||
9629 | guerimand | 67 | date=!defof class_expiration in wimshome/log/classes/$wims_class/.def |
9644 | guerimand | 68 | |
9629 | guerimand | 69 | !appendfile wimshome/log/classes/$wims_class/sheets/.sheets :0\ |
70 | $date\ |
||
9672 | guerimand | 71 | $title\ |
72 | $desc\ |
||
73 | \ |
||
74 | autogenerate for document |
||
75 | |||
9629 | guerimand | 76 | message=$name_confirmmksheet |
9644 | guerimand | 77 | docu=!nonempty line $docu |
9629 | guerimand | 78 | n=!linecnt $docu |
79 | !if $n<=6 |
||
13307 | bpr | 80 | docu=!append line $autosheet to $docu |
9629 | guerimand | 81 | !else |
13307 | bpr | 82 | docu=!replace line number 7 by $autosheet in $docu |
9629 | guerimand | 83 | !endif |
9665 | guerimand | 84 | docu=!replace line number 6 by $autosheet in $docu |
9629 | guerimand | 85 | !read proc/updatefield.proc wimshome/log/classes/$wims_class/doc/.docindex\ |
86 | $sdoc\ |
||
87 | \ |
||
88 | $docu |
||
89 | !distribute lines $docu into dir,param,title,desc,status,wksheet,autosheet |
||
90 | nbsheet=$[$nbsheet+1] |
||
91 | job=prop |