pyxetabase 3.1.0.dev8__py3-none-any.whl → 3.1.0.dev9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyxetabase might be problematic. Click here for more details.

@@ -37,21 +37,12 @@ class ClientConfiguration(object):
37
37
  return config_dict
38
38
 
39
39
  def get_sso_login_info(self):
40
- # Checking if SSO login is specified
41
40
  if (('sso_login' in self._config and self._config['sso_login']) or
42
41
  ('cookies' in self._config and self._config['cookies'])):
43
-
44
- # Getting session file name
45
- if 'name' in self._config['rest'] and self._config['rest']['name']:
46
- host_name = self._config['rest']['name']
47
- else:
48
- host_name = 'opencga'
49
- python_session_fhand = open(os.path.expanduser("~/.opencga/{}_session.json".format(host_name)), 'r')
50
-
51
- # Loading info from session file
42
+ python_session_fhand = open(os.path.expanduser("~/.opencga/session.json"), 'r')
52
43
  session_info = json.loads(python_session_fhand.read())
53
44
  self._config['sso_login'] = True
54
- self._config['cookies'] = session_info['attributes']['cookies']
45
+ self._config['cookies'] = session_info['cookies']
55
46
  self._config['token'] = session_info['token']
56
47
 
57
48
  def _validate_configuration(self):
@@ -37,21 +37,12 @@ class ClientConfiguration(object):
37
37
  return config_dict
38
38
 
39
39
  def get_sso_login_info(self):
40
- # Checking if SSO login is specified
41
40
  if (('sso_login' in self._config and self._config['sso_login']) or
42
41
  ('cookies' in self._config and self._config['cookies'])):
43
-
44
- # Getting session file name
45
- if 'name' in self._config['rest'] and self._config['rest']['name']:
46
- host_name = self._config['rest']['name']
47
- else:
48
- host_name = 'opencga'
49
- python_session_fhand = open(os.path.expanduser("~/.opencga/{}_session.json".format(host_name)), 'r')
50
-
51
- # Loading info from session file
42
+ python_session_fhand = open(os.path.expanduser("~/.opencga/session.json"), 'r')
52
43
  session_info = json.loads(python_session_fhand.read())
53
44
  self._config['sso_login'] = True
54
- self._config['cookies'] = session_info['attributes']['cookies']
45
+ self._config['cookies'] = session_info['cookies']
55
46
  self._config['token'] = session_info['token']
56
47
 
57
48
  def _validate_configuration(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyxetabase
3
- Version: 3.1.0.dev8
3
+ Version: 3.1.0.dev9
4
4
  Summary: A REST client for OpenCGA enterprise REST web services
5
5
  Author: Daniel Perez-Gil
6
6
  Author-email: daniel.perez@zettagenomics.com
@@ -2,7 +2,7 @@ pyopencga/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pyopencga/commons.py,sha256=asnM3N7Q6JdgD6hXWmlX875HJizTLAODqs0dl3UYH-E,14307
3
3
  pyopencga/exceptions.py,sha256=GmtDcurD3d_fzaa8AEntF4-sZR4Elgg4Iz3z-UUqjYU,274
4
4
  pyopencga/opencga_client.py,sha256=gM9UzbjXwHKYRbsz3qmhS8xHuIlr13sn-VEzx6cscxk,14858
5
- pyopencga/opencga_config.py,sha256=hqBChooRKrkA6JmEbb6pOBTlfE_tv6_67H5WTKUXoDE,6047
5
+ pyopencga/opencga_config.py,sha256=TCzg_9k7tl1M2OqKIrpP8jEdKodzrTh1iN-rgSWEl1M,5687
6
6
  pyopencga/rest_response.py,sha256=Gx7utYTsXV-aciFZV4f7M2eNDQg5IlphGK_T8q_PhHE,8634
7
7
  pyopencga/retry.py,sha256=_X02bDcJmr9cWH4Bt0YfUPkYborpuStmw5WDDKczwHM,2296
8
8
  pyopencga/rest_clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -30,7 +30,7 @@ pyxetabase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
30
  pyxetabase/commons.py,sha256=Okt5DgvSpZW9PUsxoLNpROb0BDrdr_zhgry4X3dQpfk,14308
31
31
  pyxetabase/exceptions.py,sha256=GmtDcurD3d_fzaa8AEntF4-sZR4Elgg4Iz3z-UUqjYU,274
32
32
  pyxetabase/opencga_client.py,sha256=V-M9i28z3A-Vgw5BnG_Ddm0MUdjQ0_XG38gohGtzavI,15386
33
- pyxetabase/opencga_config.py,sha256=hqBChooRKrkA6JmEbb6pOBTlfE_tv6_67H5WTKUXoDE,6047
33
+ pyxetabase/opencga_config.py,sha256=TCzg_9k7tl1M2OqKIrpP8jEdKodzrTh1iN-rgSWEl1M,5687
34
34
  pyxetabase/rest_response.py,sha256=TgwTI2LZFF_jV9-HSawGkF_qZ88n-dxEtIKiFcfPyDk,8635
35
35
  pyxetabase/retry.py,sha256=LjViQOaa_GkpDFkcRq9jIS183mE9t4Rq0uls9PV_mfI,2297
36
36
  pyxetabase/rest_clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -56,8 +56,8 @@ pyxetabase/rest_clients/user_client.py,sha256=frA7-rMii-yoRyca_Orkj1T80OeEe-zCdW
56
56
  pyxetabase/rest_clients/variant_client.py,sha256=mmBuVE0JBThJr5zsLGci5nykNcCKyfZXRKl-h3HT9PA,75436
57
57
  pyxetabase/rest_clients/variant_operation_client.py,sha256=oN7AEQzAkrmLQLbw86CODCEnR5xM6UkqrdN-9WPO_rM,36911
58
58
  pyxetabase/rest_clients/workflow_client.py,sha256=QYnyI17aNCjq-uXlguaSj78F0xupeWwmf8uYK1Y5tf4,12482
59
- pyxetabase-3.1.0.dev8.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
60
- pyxetabase-3.1.0.dev8.dist-info/METADATA,sha256=ZbjoF8DwCrpVt4oP6Ey7Jibbo8p5E8oTHSWLy0ekxuM,5539
61
- pyxetabase-3.1.0.dev8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
- pyxetabase-3.1.0.dev8.dist-info/top_level.txt,sha256=0m5pDpBX-lM8QpPl7bTpTQAm4kgu2-nr-pcaEu4Tn_8,11
63
- pyxetabase-3.1.0.dev8.dist-info/RECORD,,
59
+ pyxetabase-3.1.0.dev9.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
60
+ pyxetabase-3.1.0.dev9.dist-info/METADATA,sha256=cWh7nPApZLprweUs6Rq8iMFcuBHpVuufCSdjsehoiWQ,5539
61
+ pyxetabase-3.1.0.dev9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
62
+ pyxetabase-3.1.0.dev9.dist-info/top_level.txt,sha256=0m5pDpBX-lM8QpPl7bTpTQAm4kgu2-nr-pcaEu4Tn_8,11
63
+ pyxetabase-3.1.0.dev9.dist-info/RECORD,,