Esempio n. 1
0
# check for converter modules

from Products.TextIndexNG2.Registry import StorageRegistry

import StandardStorage
import StupidStorage

StorageRegistry.register('StandardStorage', StandardStorage.Storage)
StorageRegistry.register('StupidStorage', StupidStorage.Storage)
Esempio n. 2
0
 def clear(self):
     self._storage = StorageRegistry.get(self.use_storage)() 
     self._lexicon = LexiconRegistry.get(self.use_lexicon)(truncate_left=self.truncate_left)