Package pyx12 :: Module error_html :: Class error_html
[hide private]

Class error_html

source code

object --+
         |
        error_html

Instance Methods [hide private]
 
__init__(self, errh, fd, term=('~', '*', '~', '\n'))
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
header(self) source code
 
footer(self) source code
 
loop(self, loop_node) source code
 
gen_info(self, info_str) source code
 
gen_seg(self, seg_data, src, err_node_list)
Find error seg for this segment.
source code
string
_seg_str(self, seg_id, ele_list) source code
string
_wrap_ele_error(self, str1) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, errh, fd, term=('~', '*', '~', '\n'))
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • fd (file descriptor) - target file
  • term (tuple(string, string, string, string)) - tuple of x12 terminators used
Overrides: object.__init__

Bug: GS errors are re-printing at the GE level

gen_seg(self, seg_data, src, err_node_list)

source code 

Find error seg for this segment. Find any skipped error values. ID pos of bad value.

Parameters:
  • seg_data - data segment instance

_seg_str(self, seg_id, ele_list)

source code 
Parameters:
  • ele_list - list of formatted elements
Returns: string