9 def __init__(self,connectString,authpath=None,siteconfpath=None,debugON = False):
13 usedefaultfrontierconfig =
False 16 self.__connectparser.parse()
17 if self.__connectparser.needsitelocalinfo():
19 cacheconfigpath = os.environ[
'CMS_PATH']
21 cacheconfigpath = os.path.join (cacheconfigpath,
'SITECONF',
'local',
'JobConfig',
'site-local-config.xml')
23 usedefaultfrontierconfig =
True 25 cacheconfigpath = siteconfpath
26 cacheconfigpath = os.path.join (cacheconfigpath,
'site-local-config.xml')
28 if usedefaultfrontierconfig:
31 ccp.parse (cacheconfigpath)
32 self.
__connectString = self.__connectparser.fullfrontierStr(self.__connectparser.schemaname(), ccp.parameterdict())
33 if self.__connectparser.protocol()==
'oracle':
35 os.environ[
'CORAL_AUTH_PATH']=authpath
37 os.environ[
'CORAL_AUTH_PATH']=
'.' 39 msg = coral.MessageStream (
'')
40 msg.setMsgVerbosity (coral.message_Level_Debug)
41 self.
__svc = coral.ConnectionService()
def defaultfrontierConfigString()
def __init__(self, connectString, authpath=None, siteconfpath=None, debugON=False)