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