def populateBarcodeDetails(): print(sys._getframe().f_code.co_name + ": ") dao = BarcodeDAO(gc_connector) entries = [ (1, 1, 11, 44.5, 10, "M"), (2, 2, 11, 44.5, 10, "M"), (3, 3, 12, 46, 11, "M"), (4, 4, 11, 44.5, 10, "M"), (5, 5, 8, 41, 7.5, "M"), (6, 6, 9, 43, 8.5, "M"), (7, 7, 12, 46, 11, "M"), (8, 8, 11, 44.5, 10, "M"), (9, 9, 8.5, 41.5, 8, "M"), (10, 10, 9, 43, 8.5, "M"), (11, 11, 8, 41, 7.5, "M"), (12, 12, 12, 46, 11, "M") ] for entry in entries: dao.createAnEntry(entry) print(dao.selectAllEntries()) print("===================================================") print("Testing populateBarcodeDetails-------------------complete\n\n\n")
def populateBarcodeDetails(): print(sys._getframe().f_code.co_name + ": ") dao = BarcodeDAO(gc_connector) footwearSelectionDetailsFk = 1 US_size = 1 EUR_size = 2 UK_size = 3 gender = ("M", "F") for i in range(1, 5+1): entry = (i, footwearSelectionDetailsFk, US_size, EUR_size, UK_size, gender[i%2]) dao.createAnEntry(entry) footwearSelectionDetailsFk += 1 US_size += 3 EUR_size += 3 UK_size += 3 print(dao.selectAllEntries()) print("===================================================") print("Testing populateBarcodeDetails-------------------complete\n\n\n")