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
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
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?
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
4 matches
Mail list logo