[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index/text - control.pt:1.5
Guido van Rossum
guido@python.org
Thu, 5 Dec 2002 09:57:34 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/index/text
In directory cvs.zope.org:/tmp/cvs-serv19989
Modified Files:
control.pt
Log Message:
The query now actually reports the hubids and scores in a loop. No
batching!
=== Zope3/lib/python/Zope/App/index/text/control.pt 1.4 => 1.5 ===
--- Zope3/lib/python/Zope/App/index/text/control.pt:1.4 Thu Dec 5 08:57:08 2002
+++ Zope3/lib/python/Zope/App/index/text/control.pt Thu Dec 5 09:57:32 2002
@@ -52,8 +52,16 @@
</form>
<div tal:condition="request/queryText|nothing" tal:omit-tag="">
- Search results:
- <span tal:replace="python:context.query(request['queryText'])[1]" />
+ <span tal:define="
+ result_tuple python:context.query(request['queryText']);
+ total python:result_tuple[1];
+ result_list python:result_tuple[0]" tal:omit-tag="">
+ Search results: <span tal:replace="total" />
+ <div tal:repeat="match_tuple result_list">
+ Hubid: <span tal:replace="python:match_tuple[0]" />
+ Score: <span tal:replace="python:match_tuple[1]" />
+ </div>
+ </span>
</div>
</div>