def validate(self, arguments):
        try:
            # Base class will check if argument is present or ensure it has its default value
            super(IntegerParameter, self).validate(arguments)

            if arguments[self.name]:
                newVal = int(arguments[self.name])
                # Validate range if defined
                if self.minValue is not None and newVal < self.minValue:
                    raise RangeError("Argument \"%s\"=%d is less than minimum: %d" % (
                        self.name,
                        newVal,
                        self.minValue))

                if self.maxValue is not None and self.maxValue < newVal:
                    raise RangeError("Argument \"%s\"=%d is more than maximum: %d" % (
                        self.name,
                        self.maxValue,
                        newVal))

                arguments[self.name] = newVal
        except RangeError, e:
            raise e
        except __HOLE__, e:
            raise e
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/puliclient/jobs.py/IntegerParameter.validate