[Zope3-checkins] CVS: Zope3/src/zope/publisher - http.py:1.41
Jim Fulton
jim at zope.com
Sat Mar 6 12:48:57 EST 2004
Update of /cvs-repository/Zope3/src/zope/publisher
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/publisher
Modified Files:
http.py
Log Message:
Changed most calls to queryAdapter to use interface calls instead.
=== Zope3/src/zope/publisher/http.py 1.40 => 1.41 ===
--- Zope3/src/zope/publisher/http.py:1.40 Sat Mar 6 11:50:39 2004
+++ Zope3/src/zope/publisher/http.py Sat Mar 6 12:48:56 2004
@@ -35,7 +35,6 @@
from zope.i18n.interfaces import IUserPreferredCharsets
from zope.i18n.locales import locales, LoadLocaleError
-from zope.component import queryAdapter
from zope.publisher.base import BaseRequest, BaseResponse
from zope.publisher.base \
import RequestDataProperty, RequestDataMapper, RequestDataGetter
@@ -801,7 +800,7 @@
def setCharsetUsingRequest(self, request):
'See IHTTPResponse'
- envadapter = queryAdapter(request, IUserPreferredCharsets)
+ envadapter = IUserPreferredCharsets(request, None)
if envadapter is None:
return
More information about the Zope3-Checkins
mailing list