1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #description: # authkit.setup.method = forward (development.ini) # @authorize(RemoteUser()) (your controller) # ForwardRequestException # error output(http://beta.pylonshq.com/tracebacks/6ae441af-05fd-4843-bd7b-8340c1c23231) # #edit source:/authkit/authorize/pylons_adaptors.py #begin line 18: from pylons.helpers import redirect_to #begin line 34: if all_conf.get('setup.enable', True) is True: if 'forward' in all_conf.get('setup.method'): if 'REMOTE_USER' not in request.environ: redirect_to(all_conf.get('forward.signinpath')) def app(environ, start_response): return func(self, *args, **kwargs) return permission.check(app, request.environ, self.start_response) else: return func(self, *args, **kwargs) |
Powered by Pylons - Contact Administrators
Comments (0)
You must login before you can comment.