[Zope3-checkins] CVS: Zope3/src/zope/app/security/registries - principalregistry.py:1.12

Jim Fulton jim at zope.com
Sat Mar 6 12:49:24 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/security/registries
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/security/registries

Modified Files:
	principalregistry.py 
Log Message:
Changed most calls to queryAdapter to use interface calls instead.


=== Zope3/src/zope/app/security/registries/principalregistry.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/security/registries/principalregistry.py:1.11	Sat Mar  6 11:50:28 2004
+++ Zope3/src/zope/app/security/registries/principalregistry.py	Sat Mar  6 12:48:52 2004
@@ -19,7 +19,6 @@
 
 from zope.exceptions import NotFoundError
 from zope.app.interfaces.security import ILoginPassword
-from zope.component import queryAdapter
 from zope.app.interfaces.security import IAuthenticationService, IPrincipal
 from zope.app.interfaces.security import IUnauthenticatedPrincipal
 from zope.app.interfaces.services.service import ISimpleService
@@ -36,7 +35,7 @@
     # Methods implementing IAuthenticationService
 
     def authenticate(self, request):
-        a = queryAdapter(request, ILoginPassword, None)
+        a = ILoginPassword(request, None)
         if a is not None:
             login = a.getLogin()
             if login is not None:




More information about the Zope3-Checkins mailing list