def main(): capFunc.repickle('.', 'statsdat.pickle')
a = int(form.getvalue('a')) b = int(form.getvalue('b')) except: print "Issues with the indices. Must be integers!" sys.exit(-1) dispList = capFunc.indexsort(badPickle, datPickle, [a, b]) elif newAction == 'rowsort': try: a = int(form.getvalue('a')) b = int(form.getvalue('b')) except: print "Issues with the indices. Must be integers!" sys.exit(-1) dispList = capFunc.rowsort(badPickle, datPickle, [a, b]) elif newAction == 'repickle': capFunc.repickle(targetDir, datPickle) elif newAction == 'showall': print "<table>" for a in range(0, 6): print "<tr>" for b in range(0, 6): print "<td>" print "<h3>" + str(a) + ", " + str(b) + "</h3>" dispList = capFunc.rowsort(badPickle, datPickle, [a, b]) # print dispList[0:3] capFunc.showCapSquare(dispList, 8) del dispList print "</td>" print "</tr>" print "</table>" dispList = -1