Log message for revision 101429:
  - removed PluginIndexes.TextIndex dependencies (don't know if anybody uses 
these files)

Changed:
  UU  Zope/branches/2.12/src/Products/ZCTextIndex/tests/indexhtml.py
  UU  Zope/branches/2.12/src/Products/ZCTextIndex/tests/queryhtml.py

-=-
Modified: Zope/branches/2.12/src/Products/ZCTextIndex/tests/indexhtml.py
===================================================================
--- Zope/branches/2.12/src/Products/ZCTextIndex/tests/indexhtml.py      
2009-07-03 10:27:38 UTC (rev 101428)
+++ Zope/branches/2.12/src/Products/ZCTextIndex/tests/indexhtml.py      
2009-07-03 10:37:12 UTC (rev 101429)
@@ -8,6 +8,7 @@
 options:
 -f data.fs  -- the path to the filestorage datafile
 """
+# XXX: Products.PluginIndexes.TextIndex no longer exists
 from __future__ import nested_scopes
 
 import os
@@ -47,15 +48,15 @@
             return stopdict.get(w, w)
         return filter(None, map(lookup, words))
 
-def make_old_index():
-    from Products.PluginIndexes.TextIndex.TextIndex import TextIndex
-    from Products.PluginIndexes.TextIndex.Lexicon  import Lexicon
-    from Products.ZCTextIndex.StopDict import get_stopdict
+#def make_old_index():
+#    from Products.PluginIndexes.TextIndex.TextIndex import TextIndex
+#    from Products.PluginIndexes.TextIndex.Lexicon  import Lexicon
+#    from Products.ZCTextIndex.StopDict import get_stopdict
+#
+#    l = Lexicon(get_stopdict())
+#    l.SplitterFunc = MySplitter()
+#    return TextIndex("read", lexicon=l)
 
-    l = Lexicon(get_stopdict())
-    l.SplitterFunc = MySplitter()
-    return TextIndex("read", lexicon=l)
-
 def main(db, root, dir):
     rt["index"] = index = INDEX()
     rt["files"] = paths = IOBTree()
@@ -135,8 +136,8 @@
             PACK_INTERVAL = int(v)
         if o == '-n':
             LIMIT = int(v)
-        if o == '-T':
-            INDEX = make_old_index
+#        if o == '-T':
+#            INDEX = make_old_index
 
     if len(args) != 1:
         print "Expected on argument"


Property changes on: 
Zope/branches/2.12/src/Products/ZCTextIndex/tests/indexhtml.py
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
   - 1.8
Added: svn:keywords
   + Id

Modified: Zope/branches/2.12/src/Products/ZCTextIndex/tests/queryhtml.py
===================================================================
--- Zope/branches/2.12/src/Products/ZCTextIndex/tests/queryhtml.py      
2009-07-03 10:27:38 UTC (rev 101428)
+++ Zope/branches/2.12/src/Products/ZCTextIndex/tests/queryhtml.py      
2009-07-03 10:37:12 UTC (rev 101429)
@@ -1,3 +1,4 @@
+# XXX: Products.PluginIndexes.TextIndex no longer exists
 import os
 from time import clock
 
@@ -27,7 +28,7 @@
     i += len(marker)
     return "http://www.python.org"; + p[i:]
 
-from Products.PluginIndexes.TextIndex.TextIndex import And, Or
+#from Products.PluginIndexes.TextIndex.TextIndex import And, Or
 from Products.ZCTextIndex.tests.indexhtml import MySplitter
 from Products.ZCTextIndex.NBest import NBest
 
@@ -106,8 +107,8 @@
             VERBOSE += 1
         if o == '-f':
             FSPATH = v
-        if o == '-T':
-            TEXTINDEX = 1
+#        if o == '-T':
+#            TEXTINDEX = 1
 
     fs = FileStorage(FSPATH, read_only=1)
     db = ZODB.DB(fs, cache_size=10000)


Property changes on: 
Zope/branches/2.12/src/Products/ZCTextIndex/tests/queryhtml.py
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
   - 1.5
Added: svn:keywords
   + Id

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to