def __init__(self, config, name, userOpt, itemName, discoverFun): Broker.__init__(self, config, name, userOpt, itemName, discoverFun) itemsUser = config.getList(userOpt, [], onChange = None) if not itemsUser: itemsUser = None itemsDisc = self._discover(discoverFun).keys() self._itemsStart = itemsDisc if itemsDisc and itemsUser: self._itemsStart = utils.filterBlackWhite(itemsDisc, itemsUser) elif not itemsDisc: self._itemsStart = utils.filterBlackWhite(itemsUser, itemsUser) self._nIndex = 0
def __init__(self, config, name, userOpt, itemName, discoverFun): Broker.__init__(self, config, name, userOpt, itemName, discoverFun) self._itemsStart = self._discover(discoverFun)
def __init__(self, config, name, userOpt, itemName, discoverFun): Broker.__init__(self, config, name, userOpt, itemName, discoverFun) self._itemsStart = config.getList(userOpt, [], onChange = None) if not self._itemsStart: self._itemsStart = None
def __init__(self, config, name, userOpt, itemName, discoverFun): Broker.__init__(self, config, name, userOpt, itemName, discoverFun) self._storageDict = config.getDict('%s storage access' % userOpt, {}, onChange = None, parser = lambda x: utils.parseList(x, ' '), strfun = lambda x: str.join(' ', x))[0]