[Zope-CVS] CVS: Products/PluggableAuthService - PluggableAuthService.py:1.3

Zachery Bir zbir at urbanape.com
Mon Aug 2 15:11:59 EDT 2004


Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv3907

Modified Files:
	PluggableAuthService.py 
Log Message:


PluggableAuthService.py

    - Use the emergency user's user name (the special users in
      AccessControl.User don't have user ids).

tests/test_PluggableAuthService.py

    - Test that PAS._findUser() will return the emergency user when presented
      with the emergency user's username.


=== Products/PluggableAuthService/PluggableAuthService.py 1.2 => 1.3 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.2	Wed Apr 28 15:58:50 2004
+++ Products/PluggableAuthService/PluggableAuthService.py	Mon Aug  2 15:11:28 2004
@@ -784,7 +784,7 @@
 
         """ user_id -> decorated_user
         """
-        if user_id == self._emergency_user.getId():
+        if user_id == self._emergency_user.getUserName():
             return self._emergency_user
 
         if cache is None:



More information about the Zope-CVS mailing list