Re: [web2py] Re: Navbar auth

2013-09-01 Thread Federico Ferraro
Thanks for the reply !! I solved it by creating a function in the model and by setting a variable in the auth object. The code: auth.settings['navbar_disable'] = False onavbar = auth.navbar def nav_bar(**kargs): if auth.settings['navbar_disable']: return False else: return

[web2py] Re: Navbar auth

2013-09-01 Thread Johan Englund
You can add some logic in the layout.html, if I understand correctly you want to disable the navbar in some views? {{if not 'navbar_disable' in globals():}} {{='auth' in globals() and auth.navbar(mode="dropdown") or ''}} {{pass}} and then pass navbar_disable in the controller. return dict(me