Sha256: 0dde845422af18b5f164bbdd9ae8042bc747c9d295801f05526d279b54e100fe
Contents?: true
Size: 780 Bytes
Versions: 20
Compression:
Stored size: 780 Bytes
Contents
#!/usr/bin/env python import logging import wsgiref.handlers from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from app.controllers import <%= controller_names.join(", ") %> class AppController(webapp.RequestHandler): def get(self): self.redirect("/public/index.html") def main(): application = webapp.WSGIApplication( [('/*$', AppController), <% for component in controller_names -%> <% if component == controller_names.last -%> ('/<%= component %>.*', <%= component %>.Controller) <% else -%> ('/<%= component %>.*', <%= component %>.Controller), <% end -%> <% end -%> ], debug=True) wsgiref.handlers.CGIHandler().run(application) if __name__ == '__main__': main()
Version data entries
20 entries across 20 versions & 6 rubygems