(self)
{'success': True, 'result': 'Started logging for debug users'}
{'success': True, 'result': 'Started logging for debug users'}
{ success : True result : Started logging for debug users }
def __handle_generic_command_result(self):
        '''
            {'success': True, 'result': 'Started logging for debug users'}
        '''
        msg = ''
        if 'result' in self.response:
            msg = 'Success'
            msg += ': '+self.response['result']['message']
        elif 'error' in self.response:
            msg = '[OPERATION FAILED]'
            if 'error' in self.response:
                msg += ': '+self.response['error']
        self.__print_to_panel(msg)
def __handle_generic_command_result ( self ) : msg = '' if 'result' in self . response : msg = 'Success' msg += ': ' + self . response [ 'result' ] [ 'message' ] elif 'error' in self . response : msg = '[OPERATION FAILED]' if 'error' in self . response : msg += ': ' + self . response [ 'error' ] self . __print_to_panel ( msg )