[web2py] membership

2012-04-01 Thread CtrlSoft
how to hide tables based on user membership? i have following functin in controller: def view(): table = request.args(0) grid = SQLFORM.grid(db[table],args=request.args[:1], ui = dict(widget='', header='', content='', default='', cornerall='',

[web2py] Membership no longer respected.

2013-11-04 Thread Johann Spies
The following configuration stopped working (I suspect with the upgrade to 2.7.4): I have this in auth_membership: 10 johann.spies managers (4)

Re: [web2py] Membership no longer respected.

2013-11-04 Thread Richard Vézina
What the "if 'auth' in globals():" for?? If you have it to make sure user it logged you can use the and/or tricks : if auth.user and auth.has_membership('managers'): If you remove it what happen? Richard On Mon, Nov 4, 2013 at 8:18 AM, Johann Spies wrote: > The following configuration sto

Re: [web2py] Membership no longer respected.

2013-11-05 Thread Johann Spies
On 4 November 2013 16:47, Richard Vézina wrote: > What the "if 'auth' in globals():" for?? > > If you have it to make sure user it logged you can use the and/or tricks : > > if auth.user and auth.has_membership('managers'): > > Yes, that is a better way of doing it. My configuration worked for ab

[web2py] membership form with default input values

2013-08-06 Thread sasogeek
i created a membership form using form = crud.create(db.auth_membership) this gives me a form with two select fields. how do i create the form to have for instance the 3rd option automatically selected? -- --- You received this message because you are subscribed to the Google Groups "web2py-