in the following statement:

db.producto.stock.requires = IS_INT_IN_RANGE(0, 999, error_message='Error')

value of 999 in stock returns me error.
only works with maximum values of 998

in gluon.validators
in line 588:
elif self.minimum <= value <self.maximum:

should be
elif self.minimum <= value <= self.maximum:

Maybe this behavior is expected and I just need to adjust to IS_INT_IN_RANGE
(0, 1000, error_message = 'Error')

-- 
Díaz Luis
TSU Analisis de Sistemas
Universidad de Carabobo

http://web2pyfacil.blogspot.com/
Facultad de 
Odontología<http://www.odontologia.uc.edu.ve/index.php?option=com_content&view=article&id=102&Itemid=85>

Reply via email to