Subversion Repositories DevTools

Rev

Rev 163 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 163 Rev 165
Line 121... Line 121...
121
         <%=GetOpCodeListForRtagIdAndPvId( "NOTE: '", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "' has been requested" )%>
121
         <%=GetOpCodeListForRtagIdAndPvId( "NOTE: '", Request("rtag_id"), pkgInfoHash.Item("pv_id"), "' has been requested" )%>
122
      <td>
122
      <td>
123
   </tr>
123
   </tr>
124
<%
124
<%
125
End Sub
125
End Sub
126
'-----------------------------------------------------------------------------------------------------------------------------
-
 
127
Sub RenderPackageState ()
-
 
128
   If (pkgInfoHash.Item ("dlocked") = "Y") Then
-
 
129
      Response.write "<b>Status:</b>&nbsp;Released<br>"
-
 
130
   Else
-
 
131
      Response.write "<b>Status:&nbsp;</b>Not released<br>"
-
 
132
   End If
-
 
133
End Sub
-
 
134
 
-
 
135
'---------------------------------------------------------------
-
 
136
Sub Config_Spec (NNRtag_id, NNPv_id)
-
 
137
   OraDatabase.Parameters.Add "RTAG_ID", NNRtag_id,   ORAPARM_INPUT, ORATYPE_NUMBER
-
 
138
   OraDatabase.Parameters.Add "PV_ID", NNPv_id,   ORAPARM_INPUT, ORATYPE_NUMBER
-
 
139
 
-
 
140
 
-
 
141
 
-
 
142
   If NNRtag_id <> "" Then
-
 
143
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
-
 
144
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec.sql"), cint(0))
-
 
145
      Else
-
 
146
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
-
 
147
      End If
-
 
148
   Else
-
 
149
      If pkgInfoHash.Item ("dlocked") <> "Y" Then
-
 
150
         Set rsQry = OraDatabase.DbCreateDynaset( GetQuery("config_spec_nortag.sql"), cint(0))
-
 
151
      Else
-
 
152
         Set rsQry = OraDatabase.DbCreateDynaset( Replace(GetQuery("config_spec_nortag.sql"), "PV.LAST_PV_ID", "PV.PV_ID"), cint(0))
-
 
153
      End If
-
 
154
   End If
-
 
155
 
-
 
156
   OraDatabase.Parameters.Remove "RTAG_ID"
-
 
157
   OraDatabase.Parameters.Remove "PV_ID"
-
 
158
 
-
 
159
End Sub
-
 
160
 
-
 
161
'---------------------------------------------------------------
-
 
162
' Function: Config_Spec_Template
-
 
163
'
-
 
164
' Purpose:  Generates HTML to display the config spec to use
-
 
165
'           to create a view loaded with the particular package version.
-
 
166
'
-
 
167
' Arguments: dlocked       : dlocked state of the package version
-
 
168
'            config_branch : The branch, or null
-
 
169
'            pkg_label     : The package label
-
 
170
'            src_path      : The source path for the package
-
 
171
' Notes:
-
 
172
'
-
 
173
Sub Config_Spec_Template (dlocked, config_branch, pkg_label, src_path)
-
 
174
 
-
 
175
   Dim Template
-
 
176
 
-
 
177
   If (pkg_label <> "" AND src_path <> "") Then
-
 
178
      If (dlocked <> "Y" AND NOT IsNull(config_branch) AND config_branch <> "" ) Then
-
 
179
         Template = "element * CHECKEDOUT <br>" & _
-
 
180
         "element .../lost+found -none <br>" & _
-
 
181
         "element * .../" & config_branch & "/LATEST <br>" & _
-
 
182
         "element * " & pkg_label & " -mkbranch " & config_branch & "<br>" & _
-
 
183
         "element * /main/0 -mkbranch " & config_branch & "<br>"  & _
-
 
184
         "load " & chr(34) & src_path & chr(34)
-
 
185
      Else
-
 
186
         Template = "element * CHECKEDOUT <br>" & _
-
 
187
         "element .../lost+found -none <br>" & _
-
 
188
         "element * " & pkg_label &"<br>" & _
-
 
189
         "load " & chr(34) & src_path & chr(34)
-
 
190
      End If
-
 
191
   Else
-
 
192
      Template = "UNAVAILABLE - missing label and/or source path"
-
 
193
   End If
-
 
194
 
-
 
195
   Response.write "<tr>"
-
 
196
   Response.write "<td nowrap class='body_txt'><b>Config Specs:&nbsp;</b></td>"
-
 
197
   Response.write "<td nowrap class='body_txt'>"& Template &"</td>"
-
 
198
   Response.write "<td nowrap class='body_txt'></td>"
-
 
199
   Response.write "</tr>"
-
 
200
 
-
 
201
End Sub
-
 
202
 
-
 
203
'---------------------------------------------------------------
-
 
204
' Function: Jats_Commands
-
 
205
'
-
 
206
' Purpose:  Generates HTML for displaying the JATS commands for extracting
-
 
207
'           a view for the package version, and for building the targets
-
 
208
'           within a previously extracted view for the package version.
-
 
209
'
-
 
210
' Arguments: dlocked       : dlocked state of the package version
-
 
211
'            config_branch : The branch, or null
-
 
212
'            pkg_label     : The package label
-
 
213
'            src_path      : The source path for the package
-
 
214
' Notes:
-
 
215
'
-
 
216
Sub Jats_Commands (dlocked, config_branch, pkg_label, src_path)
-
 
217
 
-
 
218
   Dim Template1, Template2
-
 
219
 
-
 
220
   If (pkg_label <> "" AND src_path <> "") Then
-
 
221
      If (dlocked <> "Y" AND NOT IsNull(config_branch) AND config_branch <> "" ) Then
-
 
222
         Template1 = "jats release -extract " & pkg_label & " -path " & chr(34) & Replace(src_path, "\", "/") & chr(34) &" -branch "& config_branch
-
 
223
      Else
-
 
224
         Template1 = "jats release -extract " & pkg_label & " -path " & chr(34) & Replace(src_path, "\", "/") & chr(34)
-
 
225
      End If
-
 
226
      Template2 = "jats release -test " & pkgInfoHash.Item("pkg_label") & " -path " & chr(34) & Replace(src_path, "\", "/") & chr(34)
-
 
227
   Else
-
 
228
      Template1 = "UNAVAILABLE - missing label and/or source path"
-
 
229
      Template2 = "UNAVAILABLE - missing label and/or source path"
-
 
230
   End If
-
 
231
 
-
 
232
   Response.write "<tr>"
-
 
233
   Response.write "<td nowrap class='body_txt'><b>JATS Extract:&nbsp;</b></td>"
-
 
234
   Response.write "<td nowrap class='body_txt'>" & Template1 & "</td>"
-
 
235
   Response.write "<td nowrap class='body_txt'></td>"
-
 
236
   Response.write "</tr>"
-
 
237
   Response.write "<tr>"
-
 
238
   Response.write "<td nowrap class='body_txt'><b>JATS Test:&nbsp;</b></td>"
-
 
239
   Response.write "<td nowrap class='body_txt'>" & Template2 & "</td>"
-
 
240
   Response.write "<td nowrap class='body_txt'></td>"
-
 
241
   Response.write "</tr>"
-
 
242
 
-
 
243
End Sub
-
 
244
 
126
 
245
'-----------------------------------------------------------------------------------------------------------------------------
127
'-----------------------------------------------------------------------------------------------------------------------------
246
%>
128
%>