def _broker(self, reqs, items): result = Broker._broker(self, reqs, items) for (req_enum, req_value) in reqs: if (req_enum == WMS.STORAGE) and req_value: if result is None: result = [] for rval in req_value: result.extend(self._storage_lookup.lookup(rval)) return result
def _broker(self, reqs, items): result = Broker._broker(self, reqs, items) for (rType, rValue) in reqs: if (rType == WMS.STORAGE) and rValue: if result is None: result = [] for rval in rValue: result.extend(self._storageDict.lookup(rval)) return result
def _broker(self, reqs, items): items = Broker._broker(self, reqs, items) if items: items = [sorted(items)[self._item_idx % len(items)]] self._item_idx += 1 return items