[Zope-Checkins] CVS: Zope2 - Catalog.py:1.70.4.1

Andreas Jung andreas@dhcp165.digicool.com
Fri, 4 May 2001 15:14:29 -0400


Update of /cvs-repository/Zope2/lib/python/Products/ZCatalog
In directory yetix:/work/sandboxes/ajung-pathindex/lib/python/Products/ZCatalog

Modified Files:
      Tag: ajung-pathindex
	Catalog.py 
Log Message:
extended for pathindex



--- Updated File Catalog.py in package Zope2 --
--- Catalog.py	2001/04/27 18:07:13	1.70
+++ Catalog.py	2001/05/04 19:13:13	1.70.4.1
@@ -86,7 +86,7 @@
 from Persistence import Persistent
 import Acquisition
 import ExtensionClass
-from SearchIndex import UnIndex, UnTextIndex, UnKeywordIndex
+from SearchIndex import UnIndex, UnTextIndex, UnKeywordIndex,PathIndex
 from SearchIndex.Lexicon import Lexicon
 from MultiMapping import MultiMapping
 from string import lower
@@ -346,10 +346,12 @@
             indexes[name] = UnTextIndex.UnTextIndex(name, None, None, lexicon)
         elif index_type == 'KeywordIndex':
             indexes[name] = UnKeywordIndex.UnKeywordIndex(name)
+        elif index_type == 'PathIndex':
+            indexes[name] = PathIndex.PathIndex(name)
         else:
             raise 'Unknown Index Type', (
                 "%s invalid - must be one of %s"
-                % (index_type, ['FieldIndex', 'TextIndex', 'KeywordIndex'])
+                % (index_type, ['FieldIndex', 'TextIndex', 'KeywordIndex',"PathIndex"])
                 )
 
         self.indexes = indexes