[Checkins] SVN: PluggableAuthService/trunk/ - forward-port fix for
http://www.zope.org/Collectors/PAS/58 from the
Jens Vagelpohl
jens at dataflake.org
Sun Sep 2 15:09:35 EDT 2007
Log message for revision 79441:
- forward-port fix for http://www.zope.org/Collectors/PAS/58 from the
1.5 branch
Changed:
U PluggableAuthService/trunk/__init__.py
U PluggableAuthService/trunk/tests/test_UserFolder.py
-=-
Modified: PluggableAuthService/trunk/__init__.py
===================================================================
--- PluggableAuthService/trunk/__init__.py 2007-09-02 19:08:46 UTC (rev 79440)
+++ PluggableAuthService/trunk/__init__.py 2007-09-02 19:09:35 UTC (rev 79441)
@@ -87,7 +87,7 @@
realm=RESPONSE.realm
RESPONSE.setHeader('WWW-Authenticate', 'basic realm="%s"' % realm, 1)
- if IPluggableAuthService.isImplementedBy(acl_users):
+ if IPluggableAuthService.providedBy(acl_users):
acl_users.resetCredentials(REQUEST, RESPONSE)
else:
raise Unauthorized, '<p>You have been logged out.</p>'
Modified: PluggableAuthService/trunk/tests/test_UserFolder.py
===================================================================
--- PluggableAuthService/trunk/tests/test_UserFolder.py 2007-09-02 19:08:46 UTC (rev 79440)
+++ PluggableAuthService/trunk/tests/test_UserFolder.py 2007-09-02 19:09:35 UTC (rev 79441)
@@ -254,7 +254,15 @@
self.assertEqual(uid_and_info, (USER_ID, USER_ID))
+ def test_manage_zmi_logout(self):
+ request = self.app.REQUEST
+ response = request.RESPONSE
+ self.folder.manage_zmi_logout(request, response)
+ self.assertEqual(response.status, 401)
+ self.assertEqual(response.headers.get('WWW-Authenticate'),
+ 'basic realm="%s"' % response.realm)
+
class UserTests(pastc.PASTestCase):
def afterSetUp(self):
More information about the Checkins
mailing list