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

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


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

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


=== Zope3/src/zope/app/http/put.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/http/put.py:1.8	Sat Mar  6 11:50:24 2004
+++ Zope3/src/zope/app/http/put.py	Sat Mar  6 12:48:50 2004
@@ -17,7 +17,7 @@
 """
 __metaclass__ = type
 
-from zope.component import queryAdapter, queryNamedAdapter
+from zope.component import queryNamedAdapter
 from zope.app.interfaces.http import INullResource
 from zope.app.interfaces.file import IWriteFile, IWriteDirectory, IFileFactory
 from zope.app.event import publish
@@ -66,7 +66,7 @@
             ext = "."
 
         # Get a "directory" surrogate for the container
-        dir = queryAdapter(container, IWriteDirectory)
+        dir = IWriteDirectory(container, None)
 
         # Now try to get a custom factory for he container
         factory = queryNamedAdapter(container, IFileFactory, ext)




More information about the Zope3-Checkins mailing list