1 from Converter import Converter
2 from Components.Element import cached
4 class ValueRange(Converter, object):
5 def __init__(self, arg):
6 Converter.__init__(self, arg)
7 (self.lower, self.upper) = [int(x) for x in arg.split(',')]
11 if self.lower <= self.upper:
12 return self.lower <= self.source.value <= self.upper
14 return not (self.upper < self.source.value < self.lower)
16 boolean = property(getBoolean)