[Zope3-checkins] CVS: Zope3/src/zope/app/browser/index/text - control.py:1.13
Marius Gedminas
mgedmin@codeworks.lt
Sun, 22 Jun 2003 12:09:47 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/index/text
In directory cvs.zope.org:/tmp/cvs-serv11579/src/zope/app/browser/index/text
Modified Files:
control.py
Log Message:
Added an XXX comment to TextIndex view
=== Zope3/src/zope/app/browser/index/text/control.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/browser/index/text/control.py:1.12 Wed Jun 4 07:13:47 2003
+++ Zope3/src/zope/app/browser/index/text/control.py Sun Jun 22 12:09:46 2003
@@ -57,6 +57,9 @@
start = int(self.request.get('start', self.default_start))
count = int(self.request.get('count', self.default_count))
results, total = self.context.query(queryText, start, count)
+ # XXX Two things:
+ # 1. query can raise an exception (QueryError or ParseError)
+ # 2. query is not in the IUITextIndex interface
nresults = len(results)
first = start + 1
last = first + len(results) - 1