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
11
of file
db_credentials.py
.
References
credentials.get_credentials()
.
11
def
get_readOnly_db_credentials
():
12
creds =
credentials.get_credentials
( authPathEnvVar, db_machine )
13
if
not
creds
is
None
:
14
(username, account, pwd) = creds
15
return
db_service, username, pwd
16
else
:
17
raise
Exception
(
'Entry for service %s not found in .netrc'
%db_machine )
18
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:11
Generated for CMSSW Reference Manual by
1.8.11