It goes into a model file after auth has been instantiated. Everything in
the model is globalised as models are executed every time the app is
accessed. Example in db.py:
auth = Auth(db)
...
def user_bar():
bar = <reference to auth.user to generate nav bar...>
return bar
then you would call user_bar() in place of auth.navbar()
On Tuesday, May 13, 2014 12:21:54 PM UTC-4, Sébastien Loix wrote:
>
> Hello Lewis,
> I am having the same issue. Could you tell us where did you put the code
> for the navbar?
> Thanks!
> Sebastian
>
> El viernes, 20 de julio de 2012 10:35:25 UTC+2, Matt Newton escribió:
>>
>> Is there a simple way to make changes to the auth.navbar() helper object?
>>
>> For example, the default for a logged in user is:
>>
>> "Welcome {First Name} Logout
>> <http://127.0.0.1:8000/main/default/user/logout?_next=/main/default/index>
>> | Profile
>> <http://127.0.0.1:8000/main/default/user/profile?_next=/main/default/index>
>> | Password"
>> <http://127.0.0.1:8000/main/default/user/change_password?_next=/main/default/index>
>>
>> I would like to change it to:
>>
>> '{Email} | Logout | Profile | Password
>>
>> but I'm not sure how to request the information I want when it's masked
>> by the helper object.
>>
>> Thanks for your help.
>>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.