[Zope-CVS] CVS: Products/ZCTextIndex - Lexicon.py:1.16
Guido van Rossum
guido@python.org
Thu, 23 May 2002 09:30:03 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv24775
Modified Files:
Lexicon.py
Log Message:
Make the Lexicon class persistent.
=== Products/ZCTextIndex/Lexicon.py 1.15 => 1.16 ===
from BTrees.OIBTree import OIBTree
+import ZODB
+from Persistence import Persistent
+
from Products.ZCTextIndex.ILexicon import ILexicon
from Products.ZCTextIndex.StopDict import get_stopdict
from Products.ZCTextIndex.ParseTree import QueryError
from Products.ZCTextIndex.PipelineFactory import element_factory
-class Lexicon:
+class Lexicon(Persistent):
__implements__ = ILexicon