You were right Anthony. Thanks both of you

On Jun 6, 12:42 pm, Cesar Bustios <cesarbust...@gmail.com> wrote:
> Wait, but it worked this way:
>
> @auth.requires(auth.has_membership('A') or auth.has_membership('B'))
>
> Thank you,
>
> Cesar B.
>
> On Jun 6, 12:40 pm, Cesar Bustios <cesarbust...@gmail.com> wrote:
>
>
>
>
>
>
>
> > It's not working :(
>
> > On Jun 6, 12:35 pm, Joaquin Orbe <joaquino...@gmail.com> wrote:
>
> > > On Mon, Jun 6, 2011 at 2:03 PM, Cesar Bustios <cesarbust...@gmail.com> 
> > > 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,
> > > try this:
>
> > > @auth.requires(auth.requires_membership('A') or 
> > > auth.requires_membership('B'))
> > > def X(): ...
>
> > > Joaquin.

Reply via email to