The weird thing is that this information is loaded in the layout.html
file which all my pages are using. And some pages it loads some it
doesn't. I don't know why.
Fixed the same issue:
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('Login'), False, URL(r=request, f='user/login')],
[T('About'), False, URL(r=request, f='about')]]
---
But I still have the errors.
Regards,
Jason
On Sun, 2009-05-17 at 08:43 -0700, [email protected] wrote:
> Jason,
>
> The first thing I noticed is that both menus are the same.
>
> the else part should read something like:
>
> response.menu = [
> [T('Login'), False, URL(r=request, f='login')],
> [T('Register'), False, URL(r=request, f='register')],
> [T('Retrieve username'), False, URL(r=request,
> f='retrieve_username')],
> [T('Retrieve password'), False, URL(r=request,
> f='retrieve_password')]]
>
>
> I hope this helps you solve the problem.
>
>
> Kind regards,
>
> Annet.
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---