Mercurial > repos > cathywise > truststore_browse_testing
comparison TrustStoreGalaxyBrowse.py @ 25:18fe446f2d02
Tell requests about the new cert bundle. FFS.
| author | Catherine Wise <catherine.wise@csiro.au> |
|---|---|
| date | Thu, 14 May 2015 15:04:50 +1000 |
| parents | f4585bf75a8a |
| children | 463b024b53ff |
comparison
equal
deleted
inserted
replaced
| 24:f4585bf75a8a | 25:18fe446f2d02 |
|---|---|
| 12 from galaxy.datatypes.checkers import util | 12 from galaxy.datatypes.checkers import util |
| 13 | 13 |
| 14 # Tell urllib3 to use pyOpenSSL because we are on old Python stdlib. | 14 # Tell urllib3 to use pyOpenSSL because we are on old Python stdlib. |
| 15 # import urllib3.contrib.pyopenssl | 15 # import urllib3.contrib.pyopenssl |
| 16 # urllib3.contrib.pyopenssl.inject_into_urllib3() | 16 # urllib3.contrib.pyopenssl.inject_into_urllib3() |
| 17 # | |
| 18 os.environ["REQUESTS_CA_BUNDLE"] = "/etc/ssl/certs/certificates.crt" | |
| 17 | 19 |
| 18 CLIENT_KEY = "desktop" | 20 CLIENT_KEY = "desktop" |
| 19 CLIENT_SECRET = "cpU92F1PT7VOCANjSknuCDp4DrubmujoBaF6b0miz8OpKNokEbGMHCaSFK5/lISbBmaaGVCgeADI2A39F3Hkeg==" | 21 CLIENT_SECRET = "cpU92F1PT7VOCANjSknuCDp4DrubmujoBaF6b0miz8OpKNokEbGMHCaSFK5/lISbBmaaGVCgeADI2A39F3Hkeg==" |
| 20 CHUNK_SIZE = 2**20 # 1Mb | 22 CHUNK_SIZE = 2**20 # 1Mb |
| 21 SAFE_CHARS = '.-()[]0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ' | 23 SAFE_CHARS = '.-()[]0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ' |
