view pythonServer-legacy.py @ 2150:5df4616b6e7f

Session now performs intermediate saves on each advanceState trigger (page completions, survey completions). Specification projectReturn now "local" for presentation saving
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 09 Mar 2016 12:41:26 +0000
parents ade3acb0cee3
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()