[Zope3-checkins] CVS: Zope3/src/zope/app/http - put.py:1.5

Jim Fulton jim@zope.com
Wed, 21 May 2003 16:29:11 -0400


Update of /cvs-repository/Zope3/src/zope/app/http
In directory cvs.zope.org:/tmp/cvs-serv22522/src/zope/app/http

Modified Files:
	put.py 
Log Message:
Changed the API for handling named adapters.  There is1
now a separate cleaner api for getting named adapters.


=== Zope3/src/zope/app/http/put.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/http/put.py:1.4	Tue May 20 15:43:27 2003
+++ Zope3/src/zope/app/http/put.py	Wed May 21 16:29:11 2003
@@ -17,7 +17,7 @@
 """
 __metaclass__ = type
 
-from zope.component import getAdapter, queryAdapter
+from zope.component import getAdapter, queryAdapter, queryNamedAdapter
 from zope.app.interfaces.http import INullResource
 from zope.app.interfaces.file import IWriteFile, IWriteDirectory, IFileFactory
 from zope.app.interfaces.container import IZopeWriteContainer
@@ -72,7 +72,7 @@
         dir = getAdapter(dir, IZopeWriteContainer)
 
         # Now try to get a custom factory for he container
-        factory = queryAdapter(container, IFileFactory, name=ext)
+        factory = queryNamedAdapter(container, IFileFactory, ext)
 
         # Fall back to a non-custom one
         if factory is None: