def _axis_list_handler (self,msg): try: if self.current_server \ and getattr(msg,'from') == self.current_server.addr: \ mequtils.set_axis_list(msg.payload); except: print 'exception in meqserver._axis_list_handler: ',sys.exc_info(); traceback.print_exc();
def _axis_list_handler(self, msg): try: if self.current_server \ and getattr(msg,'from') == self.current_server.addr: \ mequtils.set_axis_list(msg.payload) except: print('exception in meqserver._axis_list_handler: ', sys.exc_info()) traceback.print_exc()
def update_forest_state (fst,merge=False): """Updates forest state record and notifies subscribers."""; global _forest_state; global _forest_state_obj; if merge: _forest_state.update(fst); else: _forest_state = fst; # check the axis list and update internals axislist = fst.get('axis_list',None); if axislist: mequtils.set_axis_list(axislist); _forest_state_obj.emit(SIGNAL("state"),_forest_state,);
def update_forest_state(fst, merge=False): """Updates forest state record and notifies subscribers.""" global _forest_state global _forest_state_obj if merge: _forest_state.update(fst) else: _forest_state = fst # check the axis list and update internals axislist = fst.get('axis_list', None) if axislist: mequtils.set_axis_list(axislist) _forest_state_obj.emit( SIGNAL("state"), _forest_state, )