[Zope-Checkins] CVS: Zope2 - PathIndex.py:1.1.2.3

andreas@digicool.com andreas@digicool.com
Mon, 14 May 2001 21:38:52 -0400 (EDT)


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

Modified Files:
      Tag: ajung-dropin-registry
	PathIndex.py 
Log Message:
minor adjustments



--- Updated File PathIndex.py in package Zope2 --
--- PathIndex.py	2001/05/15 01:36:47	1.1.2.2
+++ PathIndex.py	2001/05/15 01:38:51	1.1.2.3
@@ -97,7 +97,7 @@
 from BTrees.OOBTree import OOBTree
 from BTrees.IIBTree import IISet,difference,intersection,union
 from types import StringType
-import re,string
+import re,string,exceptions
 
 _marker = []
 
@@ -199,7 +199,7 @@
         """
         path is a list of path components to be searched
         level>=0  starts searching at the given level
-        level<0   not defined yet
+        level<0   not implemented yet
         """       
 
         comps = self.splitPath(path)
@@ -224,7 +224,7 @@
             return res
 
         else:
-            pass
+            raise exceptions.RuntimeError, "level<0 not supported yet"
  
         return res
 
@@ -233,6 +233,7 @@
         """ len """
         return len(self._index)
 
+
     def numDocuments(self):
         """ return the number of indexed documents"""
 
@@ -301,7 +302,6 @@
         
 
 
-
     def getentryForObject(self, documentId, default=_marker):
         if default is _marker:
             return self._index.getEntryForObject(documentId)
@@ -311,8 +311,8 @@
     def uniqueValues(self, name=None, withLengths=0):
         return self._index.uniqueValues(name, withLengths)
 
-    index_html = DTMLFile('dtml/index', globals())
 
+    index_html = DTMLFile('dtml/index', globals())
     manage_workspace = DTMLFile('dtml/managePathIndex', globals())