Auth Patches ============ Usage:: from web2py_utils import auth_patches set_controller -------------- This module includes a simple patch to auth to fix the controller URLS. Unfortunately auth has a bug that the URLS are actually generated when you create the object. So setting auth.settings.controller will not fix it. Usage:: >>> auth=Auth(globals(), db) >>> auth.settings.login_url /welcome/default/user/login >>> auth.controller = 'admin' >>> auth.settings.login_url /welcome/default/user/login >>> auth_patches.set_controller(auth, controller='admin', function='user') >>> auth.settings.login_url /welcome/admin/user/login