Commit a943f7cb authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Interogate store usign https instead if http.

parent ed8affdc
......@@ -43,7 +43,7 @@ def add_affiliation_keys(recjson):
recjson (dict): record data (MarcJSON)
"""
url = "http://inspirehep.net/record/%i" % recjson[u"recid"]
url = "https://inspirehep.net/record/%i" % recjson[u"recid"]
rep = requests.get(url, params={"ot": "110", "of": "txt"})
# decode the string: '000recid 110__ $$aXXX$$bYYY$$tZZZ\n'
......
......@@ -63,8 +63,8 @@ class InvenioStore(object):
url (unicode):
URL string, *e.g.*::
* ``http://cds.cern.ch/record/123456/of=recjson``
* ``http://cds.cern.ch/search?of=id&....
* ``https://cds.cern.ch/record/123456/of=recjson``
* ``https://cds.cern.ch/search?of=id&....
Keyword Args:
......@@ -399,7 +399,7 @@ class InvenioStore(object):
while scan:
kwargs["jrec"] += N_IDS
url = "http://%s/search" % self._host
url = "https://%s/search" % self._host
rep = self.interogate(url, **kwargs)
try:
......@@ -440,7 +440,7 @@ class InvenioStore(object):
"""
self._try = 0
url = "http://%s/record/%s" % (self._host, rec_id)
url = "https://%s/record/%s" % (self._host, rec_id)
rep = self.interogate(url, of="recjson")
try:
......
......@@ -3,8 +3,8 @@
Test all methods of the Record class for a given article:
http://cds.cern.ch/record/1951625.
(same as http://inspirehep.net/record/1319638)
https://cds.cern.ch/record/1951625.
(same as https://inspirehep.net/record/1319638)
Precision luminosity measurements at LHCb,
J. Instrum. 9 (2014) P12005
......
......@@ -3,8 +3,8 @@
Test all methods of the RecordPubli class for a given article:
http://cds.cern.ch/record/1951625.
(same as http://inspirehep.net/record/1319638)
https://cds.cern.ch/record/1951625.
(same as https://inspirehep.net/record/1319638)
Precision luminosity measurements at LHCb,
......
......@@ -3,8 +3,8 @@
Test specific methods of the RecordConf class for ::
http://cds.cern.ch/record/1411352.
(same as http://inspirehep.net/record/1089237)
https://cds.cern.ch/record/1411352.
(same as https://inspirehep.net/record/1089237)
Prospects for CP violation in B0s --> J/psiphi from first LHCb data
O. Leroy, Symposium on Prospects in the Physics of Discrete Symmetries,
......
......@@ -3,7 +3,7 @@
Test specific methods of the RecordThesis class for::
http://cds.cern.ch/record/1632177
https://cds.cern.ch/record/1632177
Measurement of $t\bar{t}$ spin correlation and W polarization with
the $t\bar{t}$ di-leptonic channel events at ATLAS
......
......@@ -51,7 +51,7 @@ def test_temporary_record(svc, reccds):
# get a list of recids
payload = {"p": "500__a:'*Temporary record*'", "of": "id", "rg": 10}
r = requests.get("http://inspirehep.net/search", params=payload)
r = requests.get("https://inspirehep.net/search", params=payload)
li = r.json()
# try with the oldest one to avoid issue with missing information, etc.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment