pyx12.error_html¶
Generates HTML error output
Attributes¶
Classes¶
Functions¶
|
Join a list of elements |
|
Escape special HTML characters, including quotes, so the result is safe in |
Module Contents¶
- class pyx12.error_html.error_html(errh, fd, term=('~', '*', '~', '\n'))[source]¶
- Parameters:
fd (file descriptor) – target file
term (tuple(string, string, string, string)) – tuple of x12 terminators used
errh (Any)
Bug: GS errors are re-printing at the GE level
- Return type:
None
- gen_seg(seg_data, src, err_node_list)[source]¶
Find error seg for this segment. Find any skipped error values. ID pos of bad value. :param seg_data: data segment instance
- Parameters:
seg_data (pyx12.segment.Segment)
src (Any)
err_node_list (list[Any])
- Return type:
None
- pyx12.error_html.seg_str(seg, seg_term, ele_term, subele_term, eol='')[source]¶
Join a list of elements :param seg: List of elements :type seg: list[string|list[string]] :param seg_term: Segment terminator character :type seg_term: string :param ele_term: Element terminator character :type ele_term: string :param subele_term: Sub-element terminator character :type subele_term: string :param eol: End of line character :type eol: string :return: formatted segment :rtype: string