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