Improve SimpleDelimitedFieldFormat Type Field
Status: Beta
Brought to you by:
whitemice
Improve the error message for a To-StandardXML operation in SimpleDelimitedFieldFormat; this should report the field and record # generating the error. The current message is not informative.
File "build/bdist.linux-x86_64/egg/coils/logic/workflow/formats/simple_delimited_field_format.py", line 515, in process_out
for keys, fields, in StandardXML.Read_Rows(rfile):
File "build/bdist.linux-x86_64/egg/coils/foundation/standard_xml.py", line 237, in Read_Rows
element, fallback_to_text=fallback_to_text,
File "build/bdist.linux-x86_64/egg/coils/foundation/standard_xml.py", line 57, in Convert_Field_To_Value
value = float(value)
TypeError: float() argument must be a string or a number
delta 123a29e09480221bf0b978f76fed776483f3b5d8
a dump of all the Format's attributes is now included in the exception/backtrace from an exception in a Format read/write via attachfs
Now, does a Format at point of exception set any helpful information. This is probably best addresses within the vulnerable section of each Format class.