Subversion Repositories DevTools

Rev

Rev 119 | Blame | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
Option explicit
Response.Expires = 0    ' always load the page, dont store
%>
<%
'=====================================================
'                               Make Single Package Official
'=====================================================
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/formating.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="common/common_dbedit.asp"-->
<!--#include file="common/common_make_release_subs.asp"-->
<%
'------------ ACCESS CONTROL ------------------
%>
<!--#include file="_access_control_login.asp"-->
<!--#include file="_access_control_general.asp"-->
<!--#include file="_access_control_project.asp"-->
<%
'------------ Variable Definition -------------
Dim parPv_id
Dim parRfile
Dim retERRmsg
Dim retALRTmsg
Dim retParameters
Dim parSReq             ' Skip requirements test
Dim pkgType
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = QStrPar("pv_id")
parRfile = QStrPar("rfile")
parSReq = QStrPar("sreq")
'----------------------------------------------
%>
<%
'------------------------------------------------------------------------------------

'-------------------------------------------------------------------------------------
%>
<%
'---------------------------------- MAIN LINE ----------------------------------------
'If parSReq = "Y" Then
'       ' SKIP REQUIREMENTS
'       Call Release_Single_Package ( parPv_id, parRtag_id )
'       Call Notify ( parRtag_id )
'       Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
'End If


'pkgType = Get_Pkg_Base_View_ID ( parPv_id, parRtag_id )


' REQUREMENTS CHECK for ALL
Call CheckRequirementsForMakeRelease ( parPv_id, parRtag_id, pkgType, retERRmsg, retALRTmsg, retParameters )
'Response.write "HERE"
If IsNull(retERRmsg) Then
        ' All Requirements OK
   Call PUBLIC_MakeRelease ( parRtag_id, parPv_id )

        If objEH.Finally Then
                'Call Notify ( parRtag_id )
                'Call NotifyInterest(parPv_id, parRtag_id)
                Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )

        End If

Else
        'If ( pkgType = enumBASE_VIEW_PRODUCTS ) Then
        '       ' Products
        '       If retALRTmsg = "WARNING" Then
        '               ' Allow overide
        '               Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "Y")
        '
        '       Else
        '               ' Disallow overide
        '               Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N")
        '
        '       End If
        '
        'Else
                ' Other Packages
                Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id &"|"& retParameters &"|"& "N" )

        'End If

End If

%>


<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->