I am chaging this so that controller is passed to Auth(...,controller='default')
On Feb 24, 6:59 pm, Alexandre Andrade <alexandrema...@gmail.com> wrote: > Patch: > > Massimo, > > It don't work because every time auth initialize, it defines controller as > 'default' in line 544 at tools.py > > self.settings.controller = 'default' > > I have hacked it to > > if session and session.auth_controller: > self.settings.controller = session.auth_controller > else: > self.settings.controller = 'default' > > so it works defining session.auth_controller before defining auth. > > can you patch it in the trunk? > > 2010/2/23 Thadeus Burgess <thade...@thadeusb.com> > > > > > You have to specify all of the urls manually. > > > Take a look at gluon/tools.py and see all of the settings you can change. > > > -Thadeus > > > On Tue, Feb 23, 2010 at 7:50 PM, Alexandre Andrade > > <alexandrema...@gmail.com> wrote: > > > I'm using Version 1.75.4 and not solved (always go to default/user) > > > > There is a special place to put auth.settings.controller (models?) > > > > 2009/12/29 mdipierro <mdipie...@cs.depaul.edu> > > > >> It is a bug. > > > >> On Dec 28, 11:54 pm, Thadeus Burgess <thade...@thadeusb.com> wrote: > > >> > When I set > > > >> > auth.settings.controller = 'admin' > > > >> > Shouldn't it then default to that? > > > >> > When I request an action that requries login, it takes me > > >> > tohttp://127..../init/default/user/loginwhichis... well wrong. > > > >> > Looking at the code, the login_url, etc... uses self.url() however the > > >> > setttings.controller references 'default'. So when you are setting > > >> > this in your model its already too late, and you need to set every > > >> > single one of the url's (again). > > > >> > Is this part of the design or... ? > > > >> > -Thadeus > > > >> -- > > > >> You received this message because you are subscribed to the Google > > Groups > > >> "web2py-users" group. > > >> To post to this group, send email to web...@googlegroups.com. > > >> To unsubscribe from this group, send email to > > >> web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > . > > >> For more options, visit this group at > > >>http://groups.google.com/group/web2py?hl=en. > > > > -- > > > Atenciosamente > > > > -- > > > ========================= > > > Alexandre Andrade > > > Hipercenter.com > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "web2py-users" group. > > > To post to this group, send email to web...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > . > > > For more options, visit this group at > > >http://groups.google.com/group/web2py?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "web2py-users" group. > > To post to this group, send email to web...@googlegroups.com. > > To unsubscribe from this group, send email to > > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/web2py?hl=en. > > -- > Atenciosamente > > -- > ========================= > Alexandre Andrade > Hipercenter.com -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.