[Zope-CVS] CVS: Products/ZCTextIndex/tests - mailtest.py:1.1.2.20
Fred L. Drake, Jr.
fdrake@acm.org
Mon, 13 May 2002 11:15:46 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv24495
Modified Files:
Tag: TextIndexDS9-branch
mailtest.py
Log Message:
Get the imports right.
Update to the changed constructor for the ZCTextIndex (id parameter added).
=== Products/ZCTextIndex/tests/mailtest.py 1.1.2.19 => 1.1.2.20 ===
import ZODB
import ZODB.FileStorage
-from Products.ZCTextIndex.Lexicon import Lexicon, StopWordRemover
-from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex, \
- CaseNormalizer, Splitter
+from Products.ZCTextIndex.Lexicon import Lexicon, \
+ CaseNormalizer, Splitter, StopWordRemover
+from Products.ZCTextIndex.ZCTextIndex import ZCTextIndex
from BTrees.IOBTree import IOBTree
import sys
@@ -79,7 +79,7 @@
extra.doc_attr = 'text'
caller = Extra()
caller.lexicon = lexicon
- rt["index"] = idx = ZCTextIndex(extra, caller)
+ rt["index"] = idx = ZCTextIndex("index", extra, caller)
if not EXCLUDE_TEXT:
rt["documents"] = docs = IOBTree()
get_transaction().commit()