Salva,

I don't think its a bug. You can override the default behaviour by
setting your own URLs'. Did you put the code I provided in your model
file?

In my application I have set the following URLs in db.py:

auth.settings.login_url=URL(r=request, c='authentication', f='login')
auth.settings.login_next=URL(r=request, c='core', f='index')
auth.settings.logout_next=URL(r=request,c='default',f=index')

and they do exactly what I expect them to do.


The logout_next has been added recently. Before that I used the
following lines of code to accomplish this behaviour:


def logout():
    auth.logout(next=URL(r=request, c='default', f='index'))
    return dict()


Hope this information helps you solve the problem.


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
-~----------~----~----~----~------~----~------~--~---

Reply via email to