[Zope-Checkins] CVS: Zope2 - PathIndex.py:1.1.2.4
andreas@digicool.com
andreas@digicool.com
Tue, 15 May 2001 09:06:40 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Products/PluginIndexes/PathIndex
In directory korak.digicool.com:/tmp/cvs-serv30478/PathIndex
Modified Files:
Tag: ajung-dropin-registry
PathIndex.py
Log Message:
minor update
--- Updated File PathIndex.py in package Zope2 --
--- PathIndex.py 2001/05/15 01:38:51 1.1.2.3
+++ PathIndex.py 2001/05/15 13:06:40 1.1.2.4
@@ -83,8 +83,8 @@
#
##############################################################################
+__version__ = '$Id$'
-
from Products.PluginIndexes import PluggableIndex
from Globals import Persistent, DTMLFile
@@ -105,6 +105,16 @@
Implicit, SimpleItem):
""" A path index stores all path components of the physical
path of an object:
+
+ Internal datastructure:
+
+ - a physical path of an object is split into its components
+
+ - every component is kept a key in self._indexes
+
+ - the value is a mapping 'level of the path component' to
+ 'all documentIds with this path component on this level'
+
"""
__implements__ = (PluggableIndex.PluggableIndexInterface,)
@@ -151,7 +161,6 @@
def index_object(self, documentId, obj ,threshold):
""" hook for (Z)Catalog """
-
try:
path = obj.getPhysicalPath()
except:
@@ -300,16 +309,6 @@
return res, (self.id,)
-
-
- def getentryForObject(self, documentId, default=_marker):
- if default is _marker:
- return self._index.getEntryForObject(documentId)
- else:
- return self._index.getEntryForObject(documentId, default)
-
- def uniqueValues(self, name=None, withLengths=0):
- return self._index.uniqueValues(name, withLengths)
index_html = DTMLFile('dtml/index', globals())