[Zope3-checkins] CVS: Zope3/src/zope/app/services - queryfield.py:1.5
Steve Alexander
steve@cat-box.net
Mon, 30 Jun 2003 13:20:14 -0400
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv27333/src/zope/app/services
Modified Files:
queryfield.py
Log Message:
Put myself on the hook to fix this up, now that locateComponent has
been removed.
=== Zope3/src/zope/app/services/queryfield.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/services/queryfield.py:1.4 Mon Jun 30 12:25:55 2003
+++ Zope3/src/zope/app/services/queryfield.py Mon Jun 30 13:20:13 2003
@@ -21,6 +21,10 @@
from zope.interface import classImplements
# See end of file for further imports
+# XXX This code does not work. I'm on the hook for updating it, providing
+# a test and fixing it.
+# SteveA.
+
class QueryProcessorsField(Tuple):
def __init__(self, default=(), *args, **kw):
@@ -31,6 +35,7 @@
super(QueryProcessorsField, self)._validate(value)
context = self.context
for location, adaptername in value:
+ # XXX locateComponent has been removed
component = locateComponent(location, context, IQueryProcessable)
processor = getAdapter(component, IQueryProcessor,
context=context, name=adaptername)