view pythonServer-legacy.py @ 822:d0a061995428

Feature #1302. Enter key in text-area creates new-line. Enter otherwise progresses the pre/post survey
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 23 Nov 2015 11:08:58 +0000
parents 9c579fc05a09
children
line wrap: on
line source
import SimpleHTTPServer
import SocketServer

PORT = 8080

Handler = SimpleHTTPServer.SimpleHTTPRequestHandler

httpd = SocketServer.TCPServer(("", PORT), Handler)

print "serving at port", PORT
httpd.serve_forever()