On Tuesday, November 3, 2015 at 8:46:57 AM UTC-8, Alex Glaros wrote:
>
> (1)  is there way to write it as a requires clause only for the 
> controllers that user's use?  E.g.:
>
> db.auth_group.role.requires = not IS_INT_IN_RANGE(-sys.maxint -1, sys.
> maxint)
>
> doesn't raise errors but doesn't work: db.auth_group.role.requires = not
>  IS_INT_IN_RANGE(0,100)
>
> (2) the sys syntax causes this error: 
> <type 'exceptions.NameError'> global name 'sys' is not defined
>
> thanks Dave,
>
> Alex
>


Did you jmport sys?
 
/dps

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to