def __init__(self, config, datasetExpr, datasetNick, sList): DataProvider.__init__(self, config, datasetExpr, datasetNick) (self._ds_select, self._ds_name, self._ds_keys_user, self._ds_keys_guard) = self._setup(config, 'dataset') (self._b_select, self._b_name, self._b_keys_user, self._b_keys_guard) = self._setup(config, 'block') scanList = config.getList('scanner', sList) + ['NullScanner'] self._scanner = lmap( lambda cls: InfoScanner.createInstance(cls, config), scanList)
def __init__(self, config, datasetExpr, datasetNick = None, datasetID = 0): DataProvider.__init__(self, config, '', datasetNick, datasetID) def DSB(cFun, n, *args, **kargs): return (cFun('dataset %s' % n, *args, **kargs), cFun('block %s' % n, *args, **kargs)) (self.nameDS, self.nameB) = DSB(config.get, 'name pattern', '') (self.kUserDS, self.kUserB) = DSB(config.getList, 'hash keys', []) (self.kGuardDS, self.kGuardB) = DSB(config.getList, 'guard override', []) self.kSelectDS = config.getList('dataset key select', []) scanList = config.getList('scanner', datasetExpr) + ['NullScanner'] self.scanner = lmap(lambda cls: InfoScanner.createInstance(cls, config), scanList)
def __init__(self, config, datasetExpr, datasetNick, sList): DataProvider.__init__(self, config, datasetExpr, datasetNick) (self._ds_select, self._ds_name, self._ds_keys_user, self._ds_keys_guard) = self._setup(config, 'dataset') (self._b_select, self._b_name, self._b_keys_user, self._b_keys_guard) = self._setup(config, 'block') scanList = config.getList('scanner', sList) + ['NullScanner'] self._scanner = lmap(lambda cls: InfoScanner.createInstance(cls, config), scanList)