8 def __init__(self,connectString,authpath=None,siteconfpath=None,debugON = False):
12 usedefaultfrontierconfig =
False 15 self.__connectparser.parse()
16 if self.__connectparser.needsitelocalinfo():
18 cacheconfigpath = os.environ[
'CMS_PATH']
20 cacheconfigpath = os.path.join (cacheconfigpath,
'SITECONF',
'local',
'JobConfig',
'site-local-config.xml')
22 usedefaultfrontierconfig =
True 24 cacheconfigpath = siteconfpath
25 cacheconfigpath = os.path.join (cacheconfigpath,
'site-local-config.xml')
27 if usedefaultfrontierconfig:
30 ccp.parse (cacheconfigpath)
31 self.
__connectString = self.__connectparser.fullfrontierStr(self.__connectparser.schemaname(), ccp.parameterdict())
32 if self.__connectparser.protocol()==
'oracle':
34 os.environ[
'CORAL_AUTH_PATH']=authpath
36 os.environ[
'CORAL_AUTH_PATH']=
'.' 38 msg = coral.MessageStream (
'')
39 msg.setMsgVerbosity (coral.message_Level_Debug)
40 self.
__svc = coral.ConnectionService()
def defaultfrontierConfigString()
def __init__(self, connectString, authpath=None, siteconfpath=None, debugON=False)