Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1406 bpr 1
 
2
!if $wims_user=supervisor 
3
!! !bound job within prop,show default show
4
!else
5
 !exit
6
!endif
7
 
8
title_limit=50
9
desc_limit=255
10
 
11
doctot=!recordcnt wimshome/log/classes/$wims_class/doc/.docindex
12
wims_prefix=none
13
sup=$wims_user
14
class=$wims_class
15
!if $sup!=supervisor
16
 error=not_supervisor
17
 !exit
18
!endif
19
!if $job=prop and $cmd iswordof new resume
20
  sh=!record $doc of wimshome/log/classes/$wims_class/doc/.docindex
21
  !distribute lines $sh into dir,t_,title,desc,status
22
!endif
23
!if $cmd=reply and $job=proc
24
  !read prop.proc
25
 !exit
26
!endif
27
!if ($cmd=new or $cmd=resume) and $job!=prop
28
 title=!module title $dir
29
 desc=!module description $dir
30
 !exit
31
!endif
32
 
33
!if $cmd=reply
34
 !if ../adm/ isin ../$dir or $dir=home or \
35
   (../devel/ isin ../$dir and $wims_devel_modules notwordof open)
36
  error=insert_fail
37
  !exit
38
 !endif
39
 
40
 idesc=!singlespace $desc
41
 idesc=!char 1 to $desc_limit of $idesc
42
 ititle=!singlespace $title
43
 ititle=!char 1 to $title_limit of $ititle
44
 !if $cmd=reply and $job!=prop
45
  !for i=1 to $doctot
46
   e=!record $i of wimshome/log/classes/$wims_class/doc/.docindex
47
   !distribute lines $e into wdi,win
48
   !if $dir=$wdi and $iniparm=$win
49
    test=$i
50
    error=already_exist
51
   !exit
52
   !endif
53
  !next i
54
!endif
55
 
56
!if $cmd=reply and $job=prop
57
 !read prop.proc
58
 !exit
59
!endif
60
 
61
!appendfile wimshome/log/classes/$wims_class/doc/.docindex :$dir\
62
$iniparm\
63
$ititle\
64
$idesc\
65
$status
66
 
67
wims_module_log=class $class: add $dir
68
 
69
!restart
70