Re: [web2py] About auth.requires_membership()

2011-06-06 Thread Anthony
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

Re: [web2py] About auth.requires_membership()

2011-06-06 Thread Joaquin Orbe
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 >

[web2py] About auth.requires_membership()

2011-06-06 Thread Cesar Bustios
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