33 from .base_filter
import BaseFilter
34 from .message_filter
import MessageFilter
35 from .node_filter
import NodeFilter
36 from .severity_filter
import SeverityFilter
37 from .topic_filter
import TopicFilter
43 Contains filter logic for the custom filter which allows message, severity, 44 node and topic filtering simultaniously. All of these filters must match 45 together (if they are used) or the custom filter does not match. 62 :signal: emits filter_changed_signal 63 :param checked: enables the filters if checked is True''bool'' 66 f.set_enabled(checked)
71 Passes any signals emitted by the child filters along 73 self.start_emit_timer(1)
83 Tests if the message matches the filter. 84 :param message: the message to be tested against the filters, ''Message'' 85 :returns: True if the message matches all child filters, ''bool'' 87 if not self.is_enabled():
93 all_filters = [
not f.has_filter()
or f.test_message(message)
for f
in self.
_all_filters]
94 return False not in all_filters
def test_message(self, message)
def set_enabled(self, checked)