Example #1
0
 def __session_raw_answer__(self, param):
     'Display XML answer source.'
     self.append_note(SEPARATOR)
     if param and param[0] == 'd': # d dict
         self.append_note(_T('Interpreted answer'), 'BOLD')
         self.__put_raw_into_note__(self._dict_answer)
     else: # e epp
         self.append_note(_T('Answer source'), 'BOLD')
         self.__put_raw_into_note__(human_readable(self._raw_answer))
Example #2
0
 def __session_raw_answer__(self, param):
     'Display XML answer source.'
     self.append_note(SEPARATOR)
     if param and param[0] == 'd':  # d dict
         self.append_note(_T('Interpreted answer'), 'BOLD')
         self.__put_raw_into_note__(self._dict_answer)
     else:  # e epp
         self.append_note(_T('Answer source'), 'BOLD')
         self.__put_raw_into_note__(human_readable(self._raw_answer))
Example #3
0
 def __session_raw_command__(self, param):
     'Display XML command source.'
     self.append_note(SEPARATOR)
     if param and param[0] == 'd': # d dict
         self.append_note(_T('Interpreted command'), 'BOLD')
         edoc = eppdoc_client.Message(self)
         edoc.parse_xml(self._raw_cmd)
         self.__put_raw_into_note__(edoc.create_data())
     else: # e epp
         self.append_note(_T('Command source'), 'BOLD')
         self.append_note(human_readable(self._raw_cmd), 'GREEN')
Example #4
0
 def __session_raw_command__(self, param):
     'Display XML command source.'
     self.append_note(SEPARATOR)
     if param and param[0] == 'd':  # d dict
         self.append_note(_T('Interpreted command'), 'BOLD')
         edoc = eppdoc_client.Message(self)
         edoc.parse_xml(self._raw_cmd)
         self.__put_raw_into_note__(edoc.create_data())
     else:  # e epp
         self.append_note(_T('Command source'), 'BOLD')
         self.append_note(human_readable(self._raw_cmd), 'GREEN')