When a handler event occurs, e.g. when a controller changes state, all the handlers are called back, whereas only those of "service_provider" kind should.
Proposal: the StoredInstance.__safe_handlers_callback() method should have the target "kind" as first parameter to select those specific handlers.
If this kind is None, then all handlers must be notified.
When a handler event occurs, e.g. when a controller changes state, all the handlers are called back, whereas only those of "service_provider" kind should.
Proposal: the
StoredInstance.__safe_handlers_callback()
method should have the target "kind" as first parameter to select those specific handlers. If this kind isNone
, then all handlers must be notified.