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

def ManagableIndex::ManagableIndex::ManagableIndex::matchGlob (   self,
  t 
)

term expansion -- provided for indexes with declared "string" and "ustring" term types

match '*' (match any sequence) and '?' (match any character) in *t* returning a list of terms.

Definition at line 169 of file ManagableIndex.py.

00169                         :
    '''match '*' (match any sequence) and '?' (match any character) in *t* returning a list of terms.'''
    # leads to wrong result -- would need to check against index
    # if not ('*' in t or '?' in t): return [t]
    regexp = glob2regexp(t)
    return self.matchRegexp(regexp+'$')

  _matchType = None


Generated by  Doxygen 1.6.0   Back to index