Example #1
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'mit_db'
     host = str(self.config[self.SERVICE]['host'])
     user = str(self.config[self.SERVICE]['user'])
     passwd = str(self.config[self.SERVICE]['passwd'])
     db = str(self.config[self.SERVICE]['db'])
     self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd, db=db)
Example #2
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'mit_db'
     host = str(self.config[self.SERVICE]['host'])
     user = str(self.config[self.SERVICE]['user'])
     passwd = str(self.config[self.SERVICE]['passwd'])
     db = str(self.config[self.SERVICE]['db'])
     self.conn = MySQLdb.connect(host=host, user=user, passwd=passwd, db=db)
Example #3
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'pop_db'
     self.TARGET_URL = str(self.config['services'][self.SERVICE])
Example #4
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'crab'
     collector_uri = str(self.config['services'][self.SERVICE])
     self.collector = htcondor.Collector(collector_uri)
Example #5
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'pop_db'
     self.TARGET_URL = str(self.config['services'][self.SERVICE])
Example #6
0
 def __init__(self, config=dict()):
     GenericService.__init__(self, config)
     self.logger = logging.getLogger(__name__)
     self.SERVICE = 'crab'
     collector_uri = str(self.config['services'][self.SERVICE])
     self.collector = htcondor.Collector(collector_uri)