Exemplo n.º 1
0
def main():
    capFunc.repickle('.', 'statsdat.pickle')
Exemplo n.º 2
0
         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
Exemplo n.º 3
0
def main():
    capFunc.repickle('.', 'statsdat.pickle')
Exemplo n.º 4
0
         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