[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG - TextIndexNG.py:1.2.2.52
Andreas Jung
andreas@digicool.com
Mon, 11 Mar 2002 20:44:46 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG
In directory cvs.zope.org:/tmp/cvs-serv8777
Modified Files:
Tag: ajung-textindexng-branch
TextIndexNG.py
Log Message:
converter registry is now sorted
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/TextIndexNG.py 1.2.2.51 => 1.2.2.52 ===
"""
-Text Index
+Text IndexNG
"""
__version__ = '$Id$'
@@ -297,8 +297,8 @@
return Stemmer.availableStemmers()
- def _printIndex(self):
- print self.WordDocStorage
+ def printIndex(self):
+ self.WordDocStorage.printStorage()
def index_object(self, documentId, obj, threshold=None):
@@ -793,7 +793,9 @@
""" return a list of all registered converters """
lst = []
used = []
- for c in ConverterRegistry.Registry.allConverters():
+ converters = ConverterRegistry.Registry.allConverters()
+ converters.sort( lambda x,y: cmp(x.getType(),y.getType()) )
+ for c in converters:
if not c in used:
used.append(c)
lst.append( (c.getType(), c.getDescription(), c.getDependency() ) )