Main Page
Namespaces
Classes
Package Documentation
Namespace List
Namespace Members
Functions
db_credentials Namespace Reference
Functions
def
get_readOnly_db_credentials
()
Function Documentation
def
db_credentials.get_readOnly_db_credentials
(
)
Definition at line
12
of file
db_credentials.py
.
References
credentials.get_credentials()
.
12
def
get_readOnly_db_credentials
():
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 )
19
credentials.get_credentials
def get_credentials(authPathEnvVar, service, authFile=None)
Definition:
credentials.py:13
Exception
db_credentials.get_readOnly_db_credentials
def get_readOnly_db_credentials()
Definition:
db_credentials.py:12
Generated for CMSSW Reference Manual by
1.8.11