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 membership part in this case does not work. Fortunately there are just a few users. It is an important research database. So for now auth.user is OK. I will probably experiment further with membership conditions. On my development system there is no problem. Regards Johann On 5 November 2013 15:18, Leonel Câmara <leonelcam...@gmail.com> wrote: > 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 suspect with the upgrade >> to 2.7.4): >> >> I have this in auth_membership: >> >> >> 10 <https://crest2.sun.ac.za/nkb/appadmin/update/db/auth_membership/10> >> johann.spies<https://crest2.sun.ac.za/nkb/appadmin/update/db/auth_user/2>managers >> (4) <https://crest2.sun.ac.za/nkb/appadmin/update/db/auth_group/4> >> And this in menu.py: >> >> if 'auth' in globals(): >> if auth.has_membership(role = 'managers'): >> documentation_menu = [(T('Documentation'), False, None, >> [ >> # (T('ISI raw data'), False, >> # URL(request.application, 'static', >> 'isi-raw-data-doc.html' >> # , vars = dict( >> target="_blank"))), >> (T('Documentation'), >> False, >> URL(request.application, 'static', >> 'documentation/build/html/ >> index.html')) >> ], >> >> ) >> ] >> response.menu += documentation_menu >> >> This menu does not show up even if johann.spies is logged in. >> >> Why? >> >> Regards >> Johann >> -- >> Because experiencing your loyal love is better than life itself, >> my lips will praise you. (Psalm 63:3) >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.