Esempio n. 1
0
 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)
Esempio n. 2
0
 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