Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (19 sloc) 0.479 kb
#!/usr/bin/python
from database_tables import Level
from webserver_utils import *
import cgi
import cgitb
cgitb.enable()
q = cgi.FieldStorage()
player = verify_id()
levelName = q.getfirst("level", "")
data = {}
worldData = []
levels = Level.selectBy(name = levelName)
if levels.count() > 0:
level = levels[0]
print "Content-type: text/html"
print
print render_template_file("design.html", {"level_name": levelName})
else:
print_redirect("listlevels.py")
Jump to Line
Something went wrong with that request. Please try again.