[Zope-CVS] CVS: Products/ZCTextIndex - ZCTextIndex.py:1.19

Guido van Rossum guido@python.org
Tue, 21 May 2002 13:16:20 -0400

Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv15828

Modified Files:
Log Message:
Normalize import statement formatting.
Remove redundant import.
Ensure that ZCTextIndex implements the PluggableIndexInterface by
adding an unimplemented uniqueValues() method.

=== Products/ZCTextIndex/ZCTextIndex.py 1.18 => 1.19 ===
 from Globals import DTMLFile, InitializeClass
-from Interface import verify_class_implementation
 from AccessControl.SecurityInfo import ClassSecurityInfo
-from Products.PluginIndexes.common.PluggableIndex \
-     import PluggableIndexInterface
+from Products.PluginIndexes.common.PluggableIndex import \
+     PluggableIndexInterface
 from Products.PluginIndexes.common.util import parseIndexRequest
 from Products.ZCTextIndex.OkapiIndex import OkapiIndex
 from Products.ZCTextIndex.ILexicon import ILexicon
-from Products.ZCTextIndex.Lexicon \
-     import Lexicon, Splitter, CaseNormalizer, StopWordRemover
+from Products.ZCTextIndex.Lexicon import \
+     Lexicon, Splitter, CaseNormalizer, StopWordRemover
 from Products.ZCTextIndex.NBest import NBest
 from Products.ZCTextIndex.QueryParser import QueryParser
@@ -128,6 +127,9 @@
             return default
         get_word = self.lexicon.get_word
         return [get_word(wid) for wid in word_ids]
+    def uniqueValues(self):
+        raise NotImplementedError
     ## The ZCatalog Index management screen uses these methods ##