maybe try: theint = int(form.vars.role) except ValueError: ...not an int
BTW: what does it mean "is_int_in_range may allow out of range integers" ? if it's an integer, it's an integer. if you need min and max values for some application/business logic, pass minimum and maximum parameters to is_int_in_range.... On Tuesday, November 3, 2015 at 12:35:28 AM UTC+1, Alex Glaros wrote: > > I need to reserve integer input for admin purposes. So cannot put it in > table definition. Needs to be flexible. For users, not integers. For > admin, has to be integer. Would like to control in the controller. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

