[Zope3-checkins] CVS: Zope3/src/zope/app/services - surrogate.py:1.3
michael dunstan
michael at elyt.com
Mon Feb 9 02:41:51 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv14924/src/zope/app/services
Modified Files:
surrogate.py
Log Message:
Add subscription adapters (partial adapters that return all possible factories
that match your query).
=== Zope3/src/zope/app/services/surrogate.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/services/surrogate.py:1.2 Fri Nov 21 12:09:52 2003
+++ Zope3/src/zope/app/services/surrogate.py Mon Feb 9 02:41:20 2004
@@ -104,7 +104,7 @@
def queryRegistrationsFor(self, registration, default=None):
stacks = self.stacks.get(registration.required)
if stacks:
- stack = stacks.get((registration.with, registration.name,
+ stack = stacks.get((False, registration.with, registration.name,
registration.provided))
if stack is not None:
return stack
@@ -119,7 +119,7 @@
stacks = PersistentDict()
self.stacks[registration.required] = stacks
- key = registration.with, registration.name, registration.provided
+ key = False, registration.with, registration.name, registration.provided
stack = stacks.get(key)
if stack is None:
stack = self._stackType(self)
More information about the Zope3-Checkins
mailing list