This is fairly minor problem, but seems to go against the web2py
philosophy as I see it. If after initializing the Auth object you
would like to change the default controller, you must redefine a bunch
of variables:
self.settings.login_url,
self.settings.logged_url,
self.settings.download_url,
etc.
That is because they are define at the initialization, and altering
self.settings.controller afterwards does not solve the problem. It
seems to me most people would outright redefine a few of those
variables, for example login_next by default points to yourapp/default/
index, and few would ever use that as the default. How about something
like:
class Auth(object):
    def __init__(self, environment, db=None, controller='default'):
        self.settings.controller=controller

Or maybe I'm confused? :)


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


Reply via email to