Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Normalize import statement formatting.
Browse files Browse the repository at this point in the history
Remove redundant import.
Ensure that ZCTextIndex implements the PluggableIndexInterface by
adding an unimplemented uniqueValues() method.
  • Loading branch information
gvanrossum committed May 21, 2002
1 parent 273fcb7 commit 09d46d2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ZCTextIndex.py
Expand Up @@ -20,17 +20,16 @@
from OFS.SimpleItem import SimpleItem

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

Expand Down Expand Up @@ -129,6 +128,9 @@ def getEntryForObject(self, documentId, default=None):
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 ##

def numObjects(self):
Expand Down

0 comments on commit 09d46d2

Please sign in to comment.