def getAllScans(): dataFilename = "shelve/codeScanTable" #persistent dictionary that will hold the CodeScan records dataTable = DataTable(dataFilename) #establish connection to the persistent dataTable scan_list = list() scan_list = dataTable.getAllRows() print scan_list dataTable.closeTable() #close the file connection return scan_list
def getAllScans(): dataFilename = "shelve/codeScanTable" #persistent dictionary that will hold the CodeScan records dataTable = DataTable( dataFilename) #establish connection to the persistent dataTable scan_list = list() scan_list = dataTable.getAllRows() print scan_list dataTable.closeTable() #close the file connection return scan_list