Subversion Repositories Remote Hare Voting

Rev

Rev 11 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11 Rev 14
Line 44... Line 44...
44
                <td><input type=file size=70 name=name>
44
                <td><input type=file size=70 name=name>
45
        </table>
45
        </table>
46
        <p>
46
        <p>
47
        <input type=submit name="run1" value="Run 1 Time">
47
        <input type=submit name="run1" value="Run 1 Time">
48
        <input type=submit name="run1000" value="Run 1000 Times">
48
        <input type=submit name="run1000" value="Run 1000 Times">
49
        <input type=submit name="convert" value="Convert to BLT Format">
-
 
50
    </form>
49
    </form>
51
    <p>
50
    <p>
52
Input file format is given
51
Input file format is given
53
<a href="http://www.bikmort.com/wiki/index.php?title=Hare_Voting_Procedure">here</a>.
52
<a href="http://www.bikmort.com/wiki/index.php?title=Hare_Voting_Procedure">here</a>.
54
Almost no error checking is done, so be sure to review the trace output.
53
Almost no error checking is done, so be sure to review the trace output.
Line 292... Line 291...
292
	    print "\nSUMMARY"
291
	    print "\nSUMMARY"
293
	    l = summary.items()
292
	    l = summary.items()
294
	    l.sort(lambda x,y: cmp(y[1], x[1]))
293
	    l.sort(lambda x,y: cmp(y[1], x[1]))
295
	    for pair in l:
294
	    for pair in l:
296
		print "%2d %s" % (pair[1], pair[0])
295
		print "%2d %s" % (pair[1], pair[0])
297
	elif form.has_key("convert"):
-
 
298
	    print "Convert feature not supported yet"
-
 
299
	else:
296
	else:
300
	    print "UNEXPECTED SUBMIT BUTTON: %s" % form
297
	    print "UNEXPECTED SUBMIT BUTTON: %s" % form
301
		
298
		
302
    emitPostHTML()
299
    emitPostHTML()
303
    return
300
    return