I am lost in this thread. Can you state your problem once more with a 
couple of examples. I am pretty sure try... except is wrong. The 
requires=IS_INT_IN_RANTE(minumum,maximum) can also be set in controllers, 
does not have to be set in models. Moreover 

try:
     int(s)
except:
     pass

is the worst possible thing. Python has s.isdigit() or if you need to allow 
for a sign re.compile('^[-+]?\d+$').match(s).

On Tuesday, 3 November 2015 16:26:17 UTC-6, Alex Glaros wrote:
>
> This is wrong:
>
> how about a requires clause that is some kind of lambda that requires any 
> non-numeric?  Is that possible?how about a requires clause that is some 
> kind of lambda that requires any non-numeric?  Is that possible? db.
> auth_group.role.requires=role contains ('a', 'b', 'c', etc)
>
> because doesn't handle foreign languages. 
>
> So if can't use a requires clause, then am stuck with try, which works...
>

-- 
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.

Reply via email to