[Zope3-checkins] CVS: Zope3/src/zope/app/services - adapter.py:1.13
Sidnei da Silva
sidnei@x3ng.com.br
Fri, 28 Mar 2003 19:42:13 -0500
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv25174/src/zope/app/services
Modified Files:
adapter.py
Log Message:
I know that I broke the tests, but Ive sent the patch to the mailing list and none committed the fix, so I did. I dont know how to fix this test.
=== Zope3/src/zope/app/services/adapter.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/services/adapter.py:1.12 Fri Mar 21 16:07:40 2003
+++ Zope3/src/zope/app/services/adapter.py Fri Mar 28 19:42:12 2003
@@ -114,8 +114,8 @@
return object
adapters = self._byName.get(name)
- if adapters:
+ if adapters:
registry = adapters.getForObject(
object, interface,
filter = lambda registry:
@@ -129,7 +129,7 @@
adapters = getNextService(self, Adapters)
- return adapters.queryAdapter(object, interface, default)
+ return adapters.queryAdapter(object, interface, default, name)
queryAdapter = ContextMethod(queryAdapter)