Subversion Repositories DevTools

Rev

Rev 129 | Rev 1376 | Go to most recent revision | Blame | Compare with Previous | 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"-->
<!--#include file="common/daemon_instructions.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

   If (DaemonInstructionPreventsEditing(Request("rtag_id"), Request("pv_id"))) Then
      Call RaiseMsg(enum_MSG_ERROR, "This package version has one or more daemon instructions present<br><br>"&_
                                    "Please delete them or allow them to be consumed before attempting to make the package released.")
   Else
      If PUBLIC_MakeRelease ( parRtag_id, parPv_id ) = TRUE Then
         Response.Redirect ( "_generate_release_notes.asp?rfile="& parRfile &"&pv_id="& parPv_id &"&rtag_id="& parRtag_id )
      Else
         ' do nothing - the reality is that the exception handling done in PUBLIC_MakeRelease redirects on an error anyway.
      End If
        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"-->