I understand that code and put it in my controller.
But, where do I put the reference to it in the view (the base view that is extended):
By default it says: <div id="navbar">{{='auth' in globals() and auth.navbar(separators=(' ',' | ',''))}}</div>
I assume that user.bar must replace auth.navbar(...).
But, I don't see how. An arbitrary function in a controller cannot do the same things that the auth class method does. The other problem is that my user.bar() is not in default so I must also reference the controller file. Using URL('...', '....') in place of auth.navbar did not work.
I am sorry: when you go mucking about substituting for internal functions/classes of web2py it is very unclear what one must do because the behavior of the internal classes is a bit obscure.
Thank you.