test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
db_credentials Namespace Reference

Functions

def get_readOnly_db_credentials
 

Variables

string authPathEnvVar = 'COND_AUTH_PATH'
 
string db_machine = db_service+'/CMS_ECAL_R'
 
string db_service = 'cms_omds_adg'
 

Function Documentation

def db_credentials.get_readOnly_db_credentials ( )

Definition at line 11 of file db_credentials.py.

References credentials.get_credentials().

11 
13  creds = credentials.get_credentials( authPathEnvVar, db_machine )
14  if not creds is None:
15  (username, account, pwd) = creds
16  return db_service, username, pwd
17  else:
18  raise Exception('Entry for service %s not found in .netrc' %db_machine )
def get_credentials
Definition: credentials.py:8
def get_readOnly_db_credentials

Variable Documentation

string db_credentials.authPathEnvVar = 'COND_AUTH_PATH'

Definition at line 4 of file db_credentials.py.

string db_credentials.db_machine = db_service+'/CMS_ECAL_R'

Definition at line 8 of file db_credentials.py.

string db_credentials.db_service = 'cms_omds_adg'

Definition at line 5 of file db_credentials.py.