예제 #1
0
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
예제 #2
0
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