예제 #1
0
 def __init__(self, config, name, userOpt, itemName, discoverFun):
     Broker.__init__(self, config, name, userOpt, itemName, discoverFun)
     self._storageDict = config.getLookup(
         '%s storage access' % userOpt, {},
         onChange=None,
         parser=lambda x: parseList(x, ' '),
         strfun=lambda x: str.join(' ', x))
예제 #2
0
	def __init__(self, config, name, broker_prefix, item_name, discover_fun):
		Broker.__init__(self, config, name, broker_prefix, item_name, discover_fun)
		user_filter = config.get_filter(broker_prefix, '',
			default_matcher='blackwhite', default_filter='try_strict',
			default_order=ListOrder.matcher)
		self._item_list_start = user_filter.get_selector()
		if self._item_list_start:
			self._discover(discover_fun)
		if self._item_list_discovered:
			self._item_list_start = user_filter.filter_list(self._item_list_discovered)
예제 #3
0
 def __init__(self, config, name, userOpt, itemName, discoverFun):
     Broker.__init__(self, config, name, userOpt, itemName, discoverFun)
     userFilter = config.getFilter(userOpt,
                                   '',
                                   defaultMatcher='blackwhite',
                                   defaultFilter='try_strict',
                                   defaultOrder=ListOrder.matcher)
     self._itemsStart = userFilter.filterList(None)
     itemsDiscover = list(self._discover(discoverFun).keys())
     if itemsDiscover:
         self._itemsStart = userFilter.filterList(itemsDiscover)
     self._nIndex = 0
예제 #4
0
 def __init__(self, config, name, userOpt, itemName, discoverFun):
     Broker.__init__(self, config, name, userOpt, itemName, discoverFun)
     userFilter = config.getFilter(userOpt,
                                   '',
                                   defaultMatcher='blackwhite',
                                   defaultFilter='try_strict',
                                   defaultOrder=ListOrder.matcher)
     self._itemsStart = userFilter.getSelector()
     if self._itemsStart:
         self._discover(discoverFun)
     if self._itemsDiscovered:
         self._itemsStart = userFilter.filterList(self._itemsDiscovered)
예제 #5
0
	def __init__(self, config, name, broker_prefix, item_name, discover_fun):
		Broker.__init__(self, config, name, broker_prefix, item_name, discover_fun)
		self._item_list_start = config.get_list(broker_prefix, [], on_change=None)
		if not self._item_list_start:
			self._item_list_start = None
예제 #6
0
	def __init__(self, config, name, broker_prefix, item_name, discover_fun):
		Broker.__init__(self, config, name, broker_prefix, item_name, discover_fun)
		self._storage_lookup = config.get_lookup('%s storage access' % broker_prefix, {}, on_change=None,
			parser=lambda x: parse_list(x, ' '), strfun=lambda x: str.join(' ', x))
예제 #7
0
	def __init__(self, config, name, broker_prefix, item_name, discover_fun):
		Broker.__init__(self, config, name, broker_prefix, item_name, discover_fun)
		self._item_list_start = self._discover(discover_fun)
예제 #8
0
 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
예제 #9
0
 def __init__(self, config, name, userOpt, itemName, discoverFun):
     Broker.__init__(self, config, name, userOpt, itemName, discoverFun)
     self._itemsStart = self._discover(discoverFun)