clearwing

changeset 231:6090e1d3f173

Adding identity params missing from request in SQL form
author Stelios <stv@roe.ac.uk>
date Sat Sep 01 18:31:51 2018 +0300 (23 months ago)
parents 4adcc53fcedb
children 307ebe3e1bfe
files src/url_classes/dbaccess_SQL_form.py
line diff
     1.1 --- a/src/url_classes/dbaccess_SQL_form.py	Sat Sep 01 18:08:58 2018 +0300
     1.2 +++ b/src/url_classes/dbaccess_SQL_form.py	Sat Sep 01 18:31:51 2018 +0300
     1.3 @@ -156,7 +156,8 @@
     1.4                              exclude_schema_alias =  config.PRIVATE_SURVEY_DB
     1.5                              atlasschema = atlasprivate
     1.6                      try :
     1.7 -                        req_exc = urllib2.Request( atlasschema, headers={"Accept" : "application/json", "firethorn.auth.identity" : session.get("email","unknown user"), "firethorn.auth.community" : session.get("community_input","public (unknown)")})
     1.8 +
     1.9 +                        req_exc = urllib2.Request( atlasschema, headers={"Accept" : "application/json", "firethorn.auth.identity" : session.get("email","unknown user"), "firethorn.auth.community" : config.firethorn_admin_community, "firethorn.auth.username" : config.firethorn_admin_username, "firethorn.auth.password" : config.firethorn_admin_password})
    1.10                          response_exc = urllib2.urlopen(req_exc) 
    1.11                          response_exc_json = response_exc.read()
    1.12                          exclude_schema_name = json.loads(response_exc_json)["fullname"]