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

Version Path
captproton-restfulx-1.2.3 rxgen_generators/rx_main_app/templates/main.py.erb
dima-restfulx-1.2.0 generators/rx_main_app/templates/main.py.erb
dima-restfulx-1.2.1 generators/rx_main_app/templates/main.py.erb
dima-restfulx-1.2.2 rxgen_generators/rx_main_app/templates/main.py.erb
dima-restfulx-1.2.3 rxgen_generators/rx_main_app/templates/main.py.erb
dima-restfulx-1.2.4 rxgen_generators/rx_main_app/templates/main.py.erb
dima-ruboss4ruby-1.1.1 generators/ruboss_main_app/templates/main.py.erb
dima-ruboss4ruby-1.1.2 generators/ruboss_main_app/templates/main.py.erb
rlmattax-restfulx-1.2.4.1 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.3.1 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.3.0 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.2.5 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.2.3 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.2.4 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.2.2 rxgen_generators/rx_main_app/templates/main.py.erb
restfulx-1.2.1 generators/rx_main_app/templates/main.py.erb
restfulx-1.2.0 generators/rx_main_app/templates/main.py.erb
ruboss4ruby-1.1.2 generators/ruboss_main_app/templates/main.py.erb
ruboss4ruby-1.1.1 generators/ruboss_main_app/templates/main.py.erb
ruboss4ruby-1.1.0 generators/ruboss_main_app/templates/main.py.erb