def make_callback(self, namespec, action): """ Triggers processing iaw action requested """ if action == 'restartsup': return self.restart_sup_action() if action == 'shutdownsup': return self.shutdown_sup_action() return StatusView.make_callback(self, namespec, action)
def __init__(self, context): """ Initialization of the attributes. """ StatusView.__init__(self, context) self.supvisors = self.context.supervisord.supvisors supvisors_short_cuts(self, ['info_source', 'logger']) self.address = self.supvisors.address_mapper.local_address