How to disable auth.navbar for some funtions ?

- I need to create a different layout.
Tried to create a function in the model:

    navbar_disable = False
    onavbar = auth.navbar
    def nav_bar(**kargs):
          if navbar_disable:
             return False
          else:
             return onavbar(**kargs)

   auth.navbar =  nav_bar

In the controler :

    navbar_disable = True


But it did not work ...


-- 
--
Federico Ferraro
Usuario Linux : 482533.
--

-- 

--- 
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.

Reply via email to