mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 23:01:31 +00:00
Store all initial subscriptions
This commit is contained in:
parent
14db8cae62
commit
585cd35e48
@ -7,9 +7,9 @@ class EventHandlerBase:
|
|||||||
def __init__(self, anchor):
|
def __init__(self, anchor):
|
||||||
self.messaging = Messaging()
|
self.messaging = Messaging()
|
||||||
self.anchor = anchor
|
self.anchor = anchor
|
||||||
self.messaging.subscribe(self.anchor)
|
self.subscriptions = set()
|
||||||
self.messaging.subscribe('reset')
|
self.subscribe(self.anchor)
|
||||||
self.subscriptions = {self.anchor}
|
self.subscribe('reset')
|
||||||
self.messaging.register_callback(self.event_handler_callback)
|
self.messaging.register_callback(self.event_handler_callback)
|
||||||
|
|
||||||
def event_handler_callback(self, msg_parts):
|
def event_handler_callback(self, msg_parts):
|
||||||
|
Loading…
Reference in New Issue
Block a user