Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
MoinMoin.support.xappy.searchconnection.SearchConnection.ExpandDecider Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Private Attributes

 _prefixes

Detailed Description

Definition at line 1392 of file searchconnection.py.


Constructor & Destructor Documentation

Definition at line 1393 of file searchconnection.py.

01393 
01394         def __init__(self, prefixes):
01395             _xapian.ExpandDecider.__init__(self)
01396             self._prefixes = prefixes


Member Function Documentation

Definition at line 1397 of file searchconnection.py.

01397 
01398         def __call__(self, term):
01399             pos = 0
01400             for char in term:
01401                 if not char.isupper():
01402                     break
01403                 pos += 1
01404             if term[:pos] in self._prefixes:
01405                 return True
01406             return False
01407 
    def _perform_expand(self, ids, prefixes, simterms):

Member Data Documentation

Definition at line 1395 of file searchconnection.py.


The documentation for this class was generated from the following file: