예제 #1
0
파일: ui.py 프로젝트: baruch/infinitrace
    def set_filter(self, filter_text):
        if filter_text:
            try:
                parsed_filter = TraceFilter.from_string(self._parser, filter_text)
            except FilterParseError:
                return False
        else:
            parsed_filter = TraceFilter.true()

        self._filter = parsed_filter.filter
        self._parser.set_filter(self._filter)
        self.reread()
        return True
예제 #2
0
    def set_filter(self, filter_text):
        if filter_text:
            try:
                parsed_filter = TraceFilter.from_string(
                    self._parser, filter_text)
            except FilterParseError:
                return False
        else:
            parsed_filter = TraceFilter.true()

        self._filter = parsed_filter.filter
        self._parser.set_filter(self._filter)
        self.reread()
        return True
예제 #3
0
    def get_matcher_from_string(self, string):
        try:
            parsed_filter = TraceFilter.from_string(self._parser, string)
        except FilterParseError:
            return None

        return parsed_filter
예제 #4
0
파일: ui.py 프로젝트: Berrrry/traces
    def get_matcher_from_string(self, string):
        try:
            parsed_filter = TraceFilter.from_string(self._parser, string)
        except FilterParseError:
            return None

        return parsed_filter