rattail.sw.locms.fields

rattail.sw.locsms.fields – Fields.csv Interface

rattail.sw.locsms.fields.get_field_map(csv_path='C:\\Storeman\\Fields.csv')

Parses a Fields.csv file (whose path may be overridden by specifying csv_path) and returns a dictionary object keyed by the underlying field name (e.g. "F01"), the elements of which are in turn keyed by the field name contained in the CSV file itself. It will look something like this:

{
    'F01' : {
        'HOT'            : '1',
        'FIELD'          : 'F01',
        'TYPE'           : 'C',
        'SIZE'           : '13',
        'DEC'            : '',
        'DESCRIPTOR'     : 'UPC code',
        # etc...
        },

    # etc...
    }

Previous topic

rattail.sw.locms.deploy

Next topic

rattail.sw.locms.samples

This Page