Lines Matching refs:criterion
29 from clientsimulator.criterion.InclusiveCriterion import InclusiveCriterion
128 def __setCriterion(self, criterion, value):
129 criterion.currentValue = value
131 def __removeCriterionValue(self, criterion, value):
132 criterion.removeValue(value)
134 def __editCriterion(self, criterion):
136 Allow to change the value of a criterion through a menu.
138 :param criterion: the criterion to edit
139 :type criterion: Criterion
143 for possibleValue in [x for x in criterion.allowedValues()
144 if not x in criterion.currentValue
145 and not x == criterion.noValue]:
150 criterion,
153 if InclusiveCriterion in criterion.__class__.__bases__:
154 # Inclusive criterion : display unset value (default when empty)
155 for possibleValue in criterion.currentValue:
160 criterion,
163 # Exclusive criterion : display default value
168 criterion,
169 criterion.noValue)))