Logo Search packages:      
Sourcecode: zope-extendedpathindex version File versions  Download package

def ExtendedPathIndex::ExtendedPathIndex::ExtendedPathIndex::insertEntry (   self,
  comp,
  id,
  level,
  parent_path = None,
  object_path = None 
)

Insert an entry.

   parent_path is the path of the parent object

   path is the object path, it is assumed to be unique, i.e. there
   is a one to one mapping between physical paths and docids.  This
   will be large, and is only used for breadcrumbs.

   id is the docid

Definition at line 75 of file ExtendedPathIndex.py.

00075                                                                               :
        """Insert an entry.

           parent_path is the path of the parent object

           path is the object path, it is assumed to be unique, i.e. there
           is a one to one mapping between physical paths and docids.  This
           will be large, and is only used for breadcrumbs.

           id is the docid
        """

        PathIndex.insertEntry(self, comp, id, level)

        if parent_path is not None:
            if not self._index_parents.has_key(parent_path):
                self._index_parents[parent_path] = IISet()

            self._index_parents[parent_path].insert(id)

        # We make the assumption that a full path corresponds one and only
        # one object.

        if object_path is not None:
            self._index_items[object_path] = id

    def index_object(self, docid, obj ,threshold=100):


Generated by  Doxygen 1.6.0   Back to index