Subversion Repositories DevTools

Rev

Rev 5957 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
' MAKE APPROVED FOR AUTOMATED BUILD
' --- PROCESS FORM ---
'=====================================================
%>
<%
Option explicit
' Good idea to set when using redirect
Response.Expires = 0    ' always load the page, dont store
%>

<!--#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 parSched
Dim retParameters
'------------ Constants Declaration -----------
'------------ Variable Init -------------------
parPv_id = Request("pv_id")
parRfile = Request("rfile")
parSched = Request("sched")
'----------------------------------------------
%>
<%
'-----------------------  MAIN LINE  ---------------------------

'--- Process submission ---
If ( parRtag_id <> "") AND (parPv_id <> "") Then

   If NOT canAddToRelease(Request("rtag_id"),Request("pv_id") ) Then
        Call RaiseMsg ( enum_MSG_ERROR, _
                        "<h3>Cannot progress a package that is a part of an SDK.</h3>" &_
                        "<p>If the package is a WIP, then consider moving it to a different Release." _
                      )
   End If

   If PUBLIC_ApproveRelease (parRtag_id, parPv_id, retParameters, FALSE, parSched) = TRUE Then
      If parRfile <> "" Then
         Call Destroy_All_Objects
         Response.Redirect ( parRfile &"?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
        Else
         Call Destroy_All_Objects
         Response.Redirect ( "dependencies.asp?pv_id="& parPv_id &"&rtag_id="& parRtag_id )
        End If
    Else
      'This is currently done inside Make_This_PVID_Approved()
      'Call RaiseMsg ( Eval(retERRmsg), parRtag_id &"|"& parPv_id  &"|"& retParameters &"|"& "N" )
    End If
Else
    Response.write "Some mandatory parameters are missing!" & "<br>" 'TODO
    Response.write QSTR_FullQuery
End If
%>
<!-- DESTRUCTOR ------->
<!--#include file="common/destructor.asp"-->