page 449 of the english pdf book

it better to pass a callable than a condition

mssing "is" ???


2013/9/6 António Ramos <[email protected]>

> decorating my function with 2 @auth.requires_membership
>
> @auth.requires_membership('group1')
> @auth.requires_membership('group2')
> def myfunc()
>  return res
>
> does not work
>
> with only one @auth.requires_membership it works
>
> What is the best practice?
>
> If i need to check more than one group membership
>
>
> Thank you
> António
>

-- 

--- 
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/groups/opt_out.

Reply via email to