baseimage-tutorial-framework/tfw/internals/event_handling/control_event_handler.py

9 lines
263 B
Python
Raw Normal View History

from tfw.internals.networking import Intent
from .event_handler import EventHandler
class ControlEventHandler(EventHandler): # pylint: disable=abstract-method
2019-08-26 09:10:39 +00:00
def _validate_message(self, message):
return message.get('intent') != Intent.EVENT.value