(types)
| 71 | exit(1) |
| 72 | |
| 73 | def addToDb(types): |
| 74 | with db: |
| 75 | doDbChecks() |
| 76 | for theType in types: |
| 77 | cur= db.cursor() |
| 78 | cur.execute("INSERT INTO ITEM_TYPE (type_id, name)"+ |
| 79 | " values (%s, %s)",(theType['type_id'],theType['type_name'])) |
| 80 | addAttrsToDb(theType['type_attrs'], theType['type_id']) |
| 81 | |
| 82 | |
| 83 | def validateValueType(valType): |
no test coverage detected