(db, types)
| 80 | exit(1) |
| 81 | |
| 82 | def addToDb(db, types): |
| 83 | with db: |
| 84 | doDbChecks(db) |
| 85 | for theType in types: |
| 86 | cur= db.cursor() |
| 87 | cur.execute("INSERT INTO ITEM_TYPE (type_id, name)"+ |
| 88 | " values (%s, %s)",(theType['type_id'],theType['type_name'])) |
| 89 | addAttrsToDb(db, theType['type_attrs'], theType['type_id']) |
| 90 | |
| 91 | |
| 92 | def validateValueType(valType): |
no test coverage detected