From 2f6bc22af62e4adfd533418b275d9815fb38f230 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 3 Jul 2009 03:24:58 +0000 Subject: - ``remoteuserauthenticationpolicy`` ZCML directive didn't work without an ``environ_key`` directive (didn't match docs). --- repoze/bfg/zcml.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/zcml.py') 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( -- cgit v1.2.3