[web2py] Re: Membership no longer respected.

2013-11-05 Thread Leonel Câmara
My best guess is that you are doing a response.menu = something, after the response.menu += documentation_menu. Try using append instead of += and see if you find it. Segunda-feira, 4 de Novembro de 2013 13:18:39 UTC, Johann Spies escreveu: The following configuration stopped working (I

Re: [web2py] Re: Membership no longer respected.

2013-11-05 Thread Johann Spies
Thanks for the guess Leonel. As I showed in my first email in this thread I do use response.menu += documentation_menu I found that if I leave out the membership condition and use just if auth.user: it works as before. There must be something funny on the production server that the

[web2py] Re: membership form with default input values

2013-08-06 Thread Annet
Before form= db.auth_membership.group_id.default=some_group_id Kind regards, Annet 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?

[web2py] Re: membership

2012-04-01 Thread Anthony
You can use auth.has_membership(role='some_role') to test whether the logged in user has membership in a given group. You can use that to conditionally display the links in the view as well as to restrict access to the grid (i.e., redirect somewhere if access is restricted). Anthony On