Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
119 ghuddy 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
Option explicit
4
Response.Expires = 0	' always load the page, dont store
5
%>
6
<%
7
'=====================================================
8
'				Make Single Package Official
9
'=====================================================
10
%>
11
<!--#include file="common/conf.asp"-->
12
<!--#include file="common/globals.asp"-->
13
<!--#include file="common/formating.asp"-->
14
<!--#include file="common/qstr.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<!--#include file="common/common_dbedit.asp"-->
123 ghuddy 17
<!--#include file="common/common_make_release_subs.asp"-->
153 ghuddy 18
<!--#include file="common/daemon_instructions.asp"-->
119 ghuddy 19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_login.asp"-->
23
<!--#include file="_access_control_general.asp"-->
24
<!--#include file="_access_control_project.asp"-->
25
<%
26
'------------ Variable Definition -------------
27
Dim parPv_id
28
Dim parRfile
29
Dim retERRmsg
30
Dim retALRTmsg
31
Dim retParameters
32
Dim parSReq		' Skip requirements test
33
Dim pkgType
34
'------------ Constants Declaration -----------
35
'------------ Variable Init -------------------
36
parPv_id = QStrPar("pv_id")
37
parRfile = QStrPar("rfile")
38
parSReq = QStrPar("sreq")
39
'----------------------------------------------
40
%>
41
<%
42
'------------------------------------------------------------------------------------
43
 
44
'-------------------------------------------------------------------------------------
45
%>
46
<%
47
'---------------------------------- MAIN LINE ----------------------------------------
123 ghuddy 48
'If parSReq = "Y" Then
119 ghuddy 49
'	' SKIP REQUIREMENTS
50
'	Call Release_Single_Package ( parPv_id, parRtag_id )
51
'	Call Notify ( parRtag_id )
52
'	Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
53
'End If
54
 
55
 
56
'pkgType = Get_Pkg_Base_View_ID ( parPv_id, parRtag_id )
57
 
58
 
59
' REQUREMENTS CHECK for ALL
60
Call CheckRequirementsForMakeRelease ( parPv_id, parRtag_id, pkgType, retERRmsg, retALRTmsg, retParameters )
61
'Response.write "HERE"
62
If IsNull(retERRmsg) Then
63
	' All Requirements OK
123 ghuddy 64
 
153 ghuddy 65
   If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
66
      Call RaiseMsg(enum_MSG_ERROR, "This package version has one or more daemon instructions present<br><br>"&_
67
                                    "Please delete them or allow them to be consumed before attempting to make the package released.")
129 ghuddy 68
   Else
153 ghuddy 69
      If PUBLIC_MakeRelease ( parRtag_id, parPv_id ) = TRUE Then
70
         Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
71
      Else
72
         ' do nothing - the reality is that the exception handling done in PUBLIC_MakeRelease redirects on an error anyway.
73
      End If
119 ghuddy 74
	End If
123 ghuddy 75
 
153 ghuddy 76
 
119 ghuddy 77
Else
78
	'If ( pkgType = enumBASE_VIEW_PRODUCTS ) Then
79
	'	' Products
80
	'	If retALRTmsg = "WARNING" Then
81
	'		' Allow overide
82
	'		Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "Y")
123 ghuddy 83
	'
119 ghuddy 84
	'	Else
85
	'		' Disallow overide
86
	'		Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N")
123 ghuddy 87
	'
119 ghuddy 88
	'	End If
123 ghuddy 89
	'
119 ghuddy 90
	'Else
91
		' Other Packages
92
		Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )
123 ghuddy 93
 
119 ghuddy 94
	'End If
123 ghuddy 95
 
119 ghuddy 96
End If
97
 
98
%>
99
 
100
 
101
<!-- DESTRUCTOR ------->
123 ghuddy 102
<!--#include file="common/destructor.asp"-->