[Zope3-checkins] CVS: Zope3/src/zope/app/index - __init__.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/index
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/index
Modified Files:
__init__.py
Log Message:
Changed most calls to queryAdapter to use interface calls instead.
=== Zope3/src/zope/app/index/__init__.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/index/__init__.py:1.8 Fri Mar 5 17:09:08 2004
+++ Zope3/src/zope/app/index/__init__.py Sat Mar 6 12:48:51 2004
@@ -18,7 +18,6 @@
from zope.interface import implements
from zope.app.index.interfaces import IInterfaceIndexer
from zope.app.event.interfaces import ISubscriber
-from zope.component import queryAdapter
from zope.app.interfaces.services.hub import \
IObjectRegisteredHubEvent, \
@@ -52,7 +51,7 @@
def _getValue(self, object):
if self._interface is not None:
- object = queryAdapter(object, self._interface)
+ object = self._interface(object, None)
if object is None: return None
value = getattr(object, self._field_name, None)
More information about the Zope3-Checkins
mailing list