[Zope-CVS] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.1.2.5
Jeremy Hylton
jeremy@zope.com
Thu, 2 May 2002 00:50:57 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv21950
Modified Files:
Tag: TextIndexDS9-branch
ZCTextIndex.py
Log Message:
Use new addmany() method on the NBest object.
tested via testmail.py.
=== Products/ZCTextIndex/ZCTextIndex.py 1.1.2.4 => 1.1.2.5 ===
results = self.engine.executeQuery(self.index, tree)
chooser = NBest(nbest)
- for item, score in results.items():
- chooser.add(item, score)
+ chooser.addmany(results.items())
return chooser.getbest()