first version of the import skeleton

pull/35/head
Iglocska 2016-08-04 09:12:10 +02:00
parent 3fb62fac70
commit 2b84e47f34
1 changed files with 7 additions and 7 deletions

View File

@ -4,19 +4,19 @@ import csv
misperrors = {'error': 'Error'} misperrors = {'error': 'Error'}
userConfig = { userConfig = {
'value': { 'number1': {
'type': 'Integer', 'type': 'Integer',
'regex': '/^[0-4]$/i', 'regex': '/^[0-4]$/i',
'errorMessage': 'Expected a number in range [0-4]', 'errorMessage': 'Expected a number in range [0-4]',
'message': 'Column number used for value' 'message': 'Column number used for value'
}, },
'category': { 'some_string': {
'type': 'Integer', 'type': 'String',
'message': 'Column number used for category' 'message': 'A text field'
}, },
'type': { 'boolean_field': {
'type': 'Integer', 'type': 'Boolean',
'message': 'Column number used for type' 'message': 'Boolean field test'
}, },
'comment': { 'comment': {
'type': 'Integer', 'type': 'Integer',