It's a python code .Built-in functions.
The link that I provided it to combine requirements in web2py permission 
level.

References:
ALL
https://docs.python.org/2/library/functions.html#all

ANY
https://docs.python.org/2/library/functions.html#any

The ANY and ALL using a iterable to verify your values ( returning true or 
false) , then I use a web2py code ( has_permission ) that return a boolean 
value ( True or False ) and ANY and ALL verify your values.

Remember of concept's boolean to variables that don't contains boolean 
content.
Empty string , zero value.

returned_value_one = [True , True , True]
returned_value_two = [True, False, False]

>> any(returned_value_one)
True
>> any(returned_value_two)
True
>>all(returned_value_one)
True
>>all(returned_value_two)
False

Em sexta-feira, 11 de novembro de 2016 09:55:25 UTC-3, 黄祥 escreveu:
>
> i'm interested in *ANY* and *ALL* in your code, but can't find anything 
> that contain *ANY* or *ALL* on the link you provide, is it DAL, web2py or 
> python syntax?
>
> best regards,
> stifan
>

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