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

def ManagableIndex::KeywordIndex::KeywordIndex::_makeFilter (   self,
  pred 
) [private]

a document filter 'did -> True/False' checking term predicate *pred*.

Definition at line 77 of file KeywordIndex.py.

00077                              :
    '''a document filter 'did -> True/False' checking term predicate *pred*.'''
    def check(did):
      dv = self._unindex.get(did)
      if dv is None: return False
      for t in dv.keys():
        if pred(t): return True
      return False
    return check

def addKeywordIndexForm(self):


Generated by  Doxygen 1.6.0   Back to index