# check for converter modules from Products.TextIndexNG2.Registry import StorageRegistry import StandardStorage import StupidStorage StorageRegistry.register('StandardStorage', StandardStorage.Storage) StorageRegistry.register('StupidStorage', StupidStorage.Storage)
def clear(self): self._storage = StorageRegistry.get(self.use_storage)() self._lexicon = LexiconRegistry.get(self.use_lexicon)(truncate_left=self.truncate_left)