[Zope3-checkins] CVS: Zope3/src/zope/app/services/pluggableauth - __init__.py:1.17

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


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

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


=== Zope3/src/zope/app/services/pluggableauth/__init__.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/services/pluggableauth/__init__.py:1.16	Fri Mar  5 17:09:17 2004
+++ Zope3/src/zope/app/services/pluggableauth/__init__.py	Sat Mar  6 12:48:54 2004
@@ -26,7 +26,6 @@
 from BTrees.OIBTree import OIBTree
 
 from zope.interface import implements
-from zope.component import queryAdapter
 from zope.component.interfaces import IViewFactory
 from zope.exceptions import NotFoundError
 
@@ -546,7 +545,7 @@
         # in them currently (ILoginPassword-based requests)
         # If you want a different policy, you'll need to write and register
         # a different view, replacing this one.
-        a = queryAdapter(self.request, ILoginPassword, None)
+        a = ILoginPassword(self.request, None)
         if a is None:
             return
         login = a.getLogin()




More information about the Zope3-Checkins mailing list