Beispiel #1
0
    def __init__(self,
                 descriptors=None,
                 encoding="utf-8",
                 actions=None,
                 query=None,
                 caret=None,
                 index=None):

        self.global_lock = threading.Lock()
        self.encoding = encoding
        self.actions = actions
        self.stdin = sys.stdin
        self.stdout = sys.stdout
        self.stderr = sys.stderr

        searcher = SearcherMulitQuery

        self.model_candidate = SelectorModel(percol=self,
                                             searcher=searcher,
                                             caret=caret,
                                             index=index)
        self.model = self.model_candidate