clearwing

changeset 212:da5cab579c1c

Forms to use programmeID rather than session value for passthrough
author Stelios <stv@roe.ac.uk>
date Tue Jun 19 14:28:26 2018 +0300 (2018-06-19)
parents ed90cf7124bc
children e38505ca73d8
files src/url_classes/helper_urls.py
line diff
     1.1 --- a/src/url_classes/helper_urls.py	Wed Feb 14 21:01:57 2018 +0200
     1.2 +++ b/src/url_classes/helper_urls.py	Tue Jun 19 14:28:26 2018 +0300
     1.3 @@ -160,19 +160,19 @@
     1.4                  if data.params!="":
     1.5                      url_to_read = url_to_read + '?' + data.params
     1.6                  if data.action=="crossID_read" or data.action=="osa_request":
     1.7 -                    if getattr(session, "community_input","").lower()=="atlas":
     1.8 +                    if data.programmeID="170":
     1.9                          url_to_read += "&passThrough=atlas737"
    1.10                          url_to_read += "&programmeID=170"
    1.11 -                    elif getattr(session, "community_input","").lower()=="vphas":
    1.12 +                    elif data.programmeID="190":
    1.13                          url_to_read += "&passThrough=vphas737"
    1.14                          url_to_read += "&programmeID=190"
    1.15                      else:
    1.16                          url_to_read += "&programmeID=170"
    1.17              else:
    1.18 -                if getattr(session, "community_input","").lower()=="atlas":
    1.19 +                if data.programmeID="170":
    1.20                      data.params += "&passThrough=atlas737"
    1.21                      data.params += "&programmeID=170"
    1.22 -                elif getattr(session, "community_input","").lower()=="vphas":
    1.23 +                elif data.programmeID="190":
    1.24                      data.params += "&passThrough=vphas737"
    1.25                      data.params += "&programmeID=190"
    1.26                  else:
    1.27 @@ -217,10 +217,10 @@
    1.28                              elif i!='band':
    1.29  				                form.add_field(i, data[i])
    1.30  
    1.31 -                    if getattr(session, "community_input","").lower()=="atlas":
    1.32 +                    if data.programmeID="170":
    1.33                          form.add_field("programmeID", "170")
    1.34                          form.add_field("passThrough", "atlas737")
    1.35 -                    elif getattr(session, "community_input","").lower()=="vphas":
    1.36 +                    elif data.programmeID="190":
    1.37                          form.add_field("passThrough", "vphas737")
    1.38                          form.add_field("programmeID", "190")
    1.39                      else: