[Zope-Checkins] CVS: Zope2 - KeywordIndex.py:1.1.2.4

andreas@digicool.com andreas@digicool.com
Wed, 16 May 2001 15:24:59 -0400 (EDT)


Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/KeywordIndex
In directory korak.digicool.com:/tmp/cvs-serv5107

Modified Files:
      Tag: ajung-dropin-registry
	KeywordIndex.py 
Log Message:
now passes testcases



--- Updated File KeywordIndex.py in package Zope2 --
--- KeywordIndex.py	2001/05/16 16:10:21	1.1.2.3
+++ KeywordIndex.py	2001/05/16 19:24:58	1.1.2.4
@@ -98,17 +98,9 @@
 
 _marker = []
 
-class KeywordIndex(PluggableIndex.PluggableIndex,UnIndex, Persistent,
-    Implicit, SimpleItem):
+class KeywordIndex(UnIndex,PluggableIndex.PluggableIndex,Persistent,
+     Implicit,SimpleItem):
 
-    
-    """Like an UnIndex only it indexes sequences of items
-    
-    Searches match any keyword.
-
-    This should have an _apply_index that returns a relevance score
-    """
-
     __implements__ = (PluggableIndex.PluggableIndexInterface,)
 
     meta_type="KeywordIndex"
@@ -117,6 +109,14 @@
         SimpleItem.manage_options 
     )
 
+    meta_type = 'Keyword Index'
+    
+    """Like an UnIndex only it indexes sequences of items
+    
+    Searches match any keyword.
+
+    This should have an _apply_index that returns a relevance score
+    """
 
     def index_object(self, documentId, obj, threshold=None):
         """ index an object 'obj' with integer id 'i'
@@ -183,10 +183,9 @@
                 ' document id %s' % documentId)
 
 
-
     index_html = DTMLFile('dtml/index', globals())
-
     manage_workspace = DTMLFile('dtml/manageKeywordIndex', globals())
+
 
 
 manage_addKeywordIndexForm = DTMLFile('dtml/addKeywordIndex', globals())