Re: [web2py] How would I do something like this?

2012-04-30 Thread Bill Barry
On Mon, Apr 30, 2012 at 9:36 PM, Bill Barry wrote: > On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade wrote: >> @auth.requires_membership('Analytics' or 'Analytics Manager') >> def index(): >>     return dict(message="hello from analytics.py") > > I am a bit new to this, but my understanding is that t

Re: [web2py] How would I do something like this?

2012-04-30 Thread Bill Barry
On Mon, Apr 30, 2012 at 8:18 PM, Bruce Wade wrote: > @auth.requires_membership('Analytics' or 'Analytics Manager') > def index(): >     return dict(message="hello from analytics.py") I am a bit new to this, but my understanding is that this is what you want. @auth.requires(auth.has_membership('A