It seems the menu at the top of the page that I am making as follows in
default.py
if auth.is_logged_in():
response.menu = [
[T('Home'), False, URL(r=request, f='index')],
[T('Profile'), False, URL(r=request, f='profile')],
[T('Logout'), False, URL(r=request,
f='user/logout')],
[T('About'), False, URL(r=request, f='about')]]
else:
response.menu = [
[T('Home'), False, URL(r=request, f='index')],
[T('Profile'), False, URL(r=request, f='profile')],
[T('Logout'), False, URL(r=request,
f='user/logout')],
[T('About'), False, URL(r=request, f='about')]]
before I create any methods... is not working all the time.
Certain pages it always seems to work. But others seem random.
Anything coming I am missing here? Did I do something wrong?
Regards,
Jason Brower
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---