(self, data)
Parse message data.

        The data are added to existing ones.

        @param data: message data, as "<name1>=>value1>\n<name2>=<value2>\n..."
        @type data: str

        @raise XplMessageError: invalid data

        @todo: use OrderedDict for data storage
Parse message data.
Parse message data .
def __parse_data(self, data):
        """ Parse message data.

        The data are added to existing ones.

        @param data: message data, as "<name1>=>value1>\n<name2>=<value2>\n..."
        @type data: str

        @raise XplMessageError: invalid data

        @todo: use OrderedDict for data storage
        """
        match_data = XplMessage.__regexp_data.match(data)
        if match_data is None:
            raise XplMessageError("Invalid data")
        match_data_dict = match_data.groupdict()
        data_list = match_data_dict['data'].split('\n')
        for data_ in data_list:
            if data_:
                self.__parse_single_data(data_)
def __parse_data ( self , data ) : match_data = XplMessage . __regexp_data . match ( data ) if match_data is None : raise XplMessageError ( "Invalid data" ) match_data_dict = match_data . groupdict ( ) data_list = match_data_dict [ 'data' ] . split ( '\n' ) for data_ in data_list : if data_ : self . __parse_single_data ( data_ )