Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 26d876ff96
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (36 sloc) 1.225 kb
import config
import os
import sys
import webob
from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
sys.path.append('./lib')
from controllers import *
application = webapp.WSGIApplication([
# Homepage
('/', IndexHandler),
('/(gettingstarted|help)', DocHandler),
# Category page
('/browse(/(?:[a-zA-Z][a-zA-Z0-9]*/)*)', CategoryHandler),
('/browse(/(?:[a-zA-Z][a-zA-Z0-9]*/)*)(add|edit|delete)', CategoryActionHandler),
# Gpxe script (loads category menu)
('/menu.gpxe', GpxeHandler),
# Category menu definition
('/menu.cfg', MenuHandler),
# Individual boot entry page
('/([0-9]+)', BootConfigHandler),
('/([0-9]+)/edit', EditConfigHandler),
('/([0-9]+)/delete', DeleteConfigHandler),
('/([0-9]+)/addcategory', AddConfigCategoryHandler),
('/([0-9]+)/deletecategory', DeleteConfigCategoryHandler),
# List of a user's configs
('/my/configs', MyConfigsHandler),
('/my/newconfig', NewConfigHandler),
# Individual boot gpxe script
('/([0-9]+)/boot.gpxe', BootGpxeHandler),
('/tasks/download_count_update', UpdateHandler),
], debug=config.on_dev_server)
def main():
util.run_wsgi_app(application)
if __name__ == "__main__":
main()
Jump to Line
Something went wrong with that request. Please try again.