(self, message)
Send the raw content for the brain parts over the MQ
Send the raw content for the brain parts over the MQ
Send the raw content for the brain parts over the MQ
def _mdp_reply_butler_scripts(self, message):
        """ Send the raw content for the brain parts over the MQ
        """

        # TODO : handle choice of the client in the req message

        # load not understood queries data
        self.read_not_understood_file()

        msg = MQMessage()
        msg.set_action('butler.scripts.result')
        msg.add_data(u"learn", self.learn_content)
        msg.add_data(u"not_understood", self.not_understood_content)
        for client_id in self.brain_content:
            msg.add_data(client_id, self.brain_content[client_id])
        self.reply(msg.get())
def _mdp_reply_butler_scripts ( self , message ) : # TODO : handle choice of the client in the req message # load not understood queries data self . read_not_understood_file ( ) msg = MQMessage ( ) msg . set_action ( 'butler.scripts.result' ) msg . add_data ( u"learn" , self . learn_content ) msg . add_data ( u"not_understood" , self . not_understood_content ) for client_id in self . brain_content : msg . add_data ( client_id , self . brain_content [ client_id ] ) self . reply ( msg . get ( ) )