def inst_configdb(self, msg=''): parent = self.parent_ctrl uris = getattr(parent, 'uris', 'mcbrowne:psana@psdb-dev:9306') inst = getattr(parent, 'inst', 'TMO') logger.debug('%sconnect to configdb(uri_suffix=%s, inst=%s)' % (msg, uris, inst)) return inst, get_configdb(uri_suffix=uris, inst=inst)
def inst_configdb(self, msg=''): uris = getattr(cp.cgwmain, 'uris', URI_CONFIGDB) inst = getattr(cp, 'inst', None) if inst is None: inst = daq_control_get_instrument() logger.debug('%sconnect to configdb(uri_suffix=%s, inst=%s)' % (msg, uris, inst)) return inst, get_configdb(uri_suffix=uris, inst=inst)
def inst_configdb(self, msg=''): uris = getattr(cp.cgwmain, 'uris', URI_CONFIGDB) inst = getattr(cp, 'instr', None) user = getattr(cp.cgwmain, 'user', None) pwd = getattr(cp.cgwmain, 'password', None) if inst is None: inst = daq_control_get_instrument() logger.debug('%sconnect to configdb(uris=%s, inst=%s, user=%s, password=...)' % (msg, uris, inst, user)) return inst, get_configdb(uri=uris, hutch=inst, create=False, root=ROOT_CONFIGDB, user=user, password=pwd)
def inst_configdb(self, msg=''): uris = getattr(cp.cgwmain, 'uris', 'mcbrowne:psana@psdb-dev:9306') inst = getattr(cp, 'inst', 'TST') logger.debug('%sconnect to configdb(uri_suffix=%s, inst=%s)' % (msg, uris, inst)) return inst, get_configdb(uri_suffix=uris, inst=inst)