def _set_integer_value(self, value):
        if isinstance(value, str) or isinstance(value, unicode):
            value = int(value)
        if isinstance(value, int) or isinstance(value, long):
            if self.allowed_values:
                min, max = self.allowed_values.split('-')
                if value < int(min) or value > int(max):
                    raise ValueError, 'range is %s' % self.allowed_values
            self._value = value
        else:
            raise ValueError, 'value must be integer'
dataset/ETHPy150Open darcyliu/storyboard/boto/rds/parametergroup.py/Parameter._set_integer_value/original