[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Security - PrincipalRegistry.py:1.1.2.8

Jim Fulton jim@zope.com
Sun, 3 Feb 2002 18:24:31 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security
In directory cvs.zope.org:/tmp/cvs-serv22359

Modified Files:
      Tag: Zope-3x-branch
	PrincipalRegistry.py 
Log Message:
Kapil Thangavelu default in call to getAdapter that caused component
lookup errors to be masked as attribute errors.


=== Zope3/lib/python/Zope/App/Security/PrincipalRegistry.py 1.1.2.7 => 1.1.2.8 ===
     def unauthorized(self, id, request):
         if id is None or id is self.__defaultid:
-            a = getAdapter(request, ILoginPassword, None)
+            a = getAdapter(request, ILoginPassword)
             a.needLogin(realm="zope")
 
     def getPrincipal(self, id):