On Monday, June 6, 2011 1:35:23 PM UTC-4, Joaquin Orbe wrote:
>
> Hi,
> try this:
>
> @auth.requires(auth.requires_membership('A') or
> auth.requires_membership('B'))
> def X(): ...
>
I think it would need to be auth.has_membership, not
auth.requires_membership (the latter is intended to be use
On Mon, Jun 6, 2011 at 2:03 PM, Cesar Bustios wrote:
> Hi, is there a way to use this decorator with more than one group? For
> example if i need function X to be use with groups A and B:
>
> @auth.requires_membership('A', 'B')
> def X(): ...
>
> That doesn't work. How can I do that?
>
> Thanks
>
Hi, is there a way to use this decorator with more than one group? For
example if i need function X to be use with groups A and B:
@auth.requires_membership('A', 'B')
def X(): ...
That doesn't work. How can I do that?
Thanks
3 matches
Mail list logo