diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-07-03 03:24:58 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-07-03 03:24:58 +0000 |
| commit | 2f6bc22af62e4adfd533418b275d9815fb38f230 (patch) | |
| tree | a0d7c928857e96c54f4c4bee2c0a3b388c9fb4d1 /repoze/bfg/zcml.py | |
| parent | 7bc20e11b5ed7314e5aaed000242d4d5950fc775 (diff) | |
| download | pyramid-2f6bc22af62e4adfd533418b275d9815fb38f230.tar.gz pyramid-2f6bc22af62e4adfd533418b275d9815fb38f230.tar.bz2 pyramid-2f6bc22af62e4adfd533418b275d9815fb38f230.zip | |
- ``remoteuserauthenticationpolicy`` ZCML directive didn't work
without an ``environ_key`` directive (didn't match docs).
Diffstat (limited to 'repoze/bfg/zcml.py')
| -rw-r--r-- | repoze/bfg/zcml.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index 4384924a7..0ce38997d 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -248,7 +248,8 @@ class IRemoteUserAuthenticationPolicyDirective(Interface): default=u'REMOTE_USER') callback = GlobalObject(title=u'callback', required=False) -def remoteuserauthenticationpolicy(_context, environ_key, callback=None): +def remoteuserauthenticationpolicy(_context, environ_key='REMOTE_USER', + callback=None): policy = RemoteUserAuthenticationPolicy(environ_key=environ_key, callback=callback) _context.action( |
