agree. thanks.
On Jun 14, 2:53 am, Hans Donner <hans.don...@pobox.com> wrote:
> models\menu.py now has hard-encoded urls to login/logout etc.
> These could be replaced by their auth.setting counterparts.
>
> Problably need some more settings to cover all options. This way it
will continue to work out of the box when you change some auth
> settings...
>
> === modified file 'web2py/applications/welcome/models/menu.py'
> --- web2py/applications/welcome/models/menu.py 2009-06-13 03:43:52 +0000
> +++ web2py/applications/welcome/models/menu.py 2009-06-14 07:45:45 +0000
> @@ -15,7 +15,7 @@
> if 'auth' in globals():
> if not auth.is_logged_in():
> response.menu_auth = [
> - [T('Login'), False,
> URL(request.application,'default','user/login'),
> + [T('Login'), False, auth.settings.login_url,
> [
> [T('Register'), False,
> URL(request.application,'default','user/register')],
> @@ -27,8 +27,7 @@
> response.menu_auth = [
> ['User: '+auth.user.first_name,False,None,
> [
> - [T('Logout'), False,
> - URL(request.application,'default','user/logout')],
> + [T('Logout'), False, auth.settings.login_url],
> [T('Edit Profile'), False,
> URL(request.application,'default','user/profile')],
> [T('Change Password'), False,
>
> menu-auth.patch
> 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---