[Zope-Checkins] CVS: Zope2 - TextIndex.py:1.8
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 15 Jun 2001 09:43:09 -0400
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/TextIndex
In directory serenade:/tmp/cvs-serv28792
Modified Files:
TextIndex.py
Log Message:
removed forgotten debug code
--- Updated File TextIndex.py in package Zope2 --
--- TextIndex.py 2001/06/15 10:12:04 1.7
+++ TextIndex.py 2001/06/15 13:43:09 1.8
@@ -588,6 +588,7 @@
## various languages.
q = self.getLexicon().query_hook(q)
# do some more parsing
+
q = parse2(q, default_operator)
## evalute the final 'expression'
@@ -669,6 +670,7 @@
val = left.near(right)
query[(i - 1) : (i + 2)] = [ val ]
else: i = i + 1
+
if (len(query) != 1): raise QueryError, "Malformed query"