Example #1
0
def main():
    application = webapp.WSGIApplication([
      ('/', handlers.about.AboutHandler),
      ('/ls', handlers.lyricsmash.LyricsmashHandler),
      ('/ldb', handlers.loaddb.LoadDbHandler),
    ], debug=True)
    util.run_wsgi_app(application)
Example #2
0
def main():
    application = webapp.WSGIApplication([
        ("/admin/new/?", NewEntryHandler),
        ("/admin/edit/([^/]+)/?", EditEntryHandler),
        ("/tasks/searchindexing", search.SearchIndexing)
    ], debug=True)
    run_wsgi_app(application)
Example #3
0
def main():
  application = webapp.WSGIApplication([
                                         ('/emails(\.json)*', OutboundHandler), 
                                         InboundHandler.mapping()
                                       ],
                                       debug=True)
  util.run_wsgi_app(application)
Example #4
0
def main():
  application = webapp.WSGIApplication([
      ('/', MainHandler.Handler),
      ('/.json', MainHandler.Handler),
      ('/conversaciones/(.+)', ThreadsHandler.Handler),
      ('/directrices', GuidelinesHandler.Handler),
      ('/preguntas-frecuentes', FAQHandler.Handler),
      ('/nuevo', NewHandler.Handler),
      ('/nuevo.json', NewHandler.Handler),
      ('/noticias-usuario/(.+)', UserPostsHandler.Handler),
      ('/agregar', SubmitNewStoryHandler.Handler),
      ('/upvote/(.+)', UpVoteHandler.Handler),
      ('/upvote_comment/(.+)', UpVoteCommentHandler.Handler),
      ('/perfil/(.+)', ProfileHandler.Handler),
      ('/noticia/(.+)', PostHandler.Handler),
      ('/editar-noticia/(.+)', EditPostHandler.Handler),
      ('/responder/(.+)', CommentReplyHandler.Handler),
      ('/editar-comentario/(.+)', EditCommentHandler.Handler),
      ('/inbox', NotificationsInboxHandler.Handler),
      ('/inbox/all', NotificationsInboxAllHandler.Handler),
      ('/inbox/marcar-como-leido/(.+)', NotificationsMarkAsReadHandler.Handler),
      ('/lideres', LeaderHandler.Handler),
      ('/login', LoginHandler.Handler),
      ('/logout', LogoutHandler.Handler),
      ('/register', RegisterHandler.Handler),
      ('/olvide-el-password', NewPasswordHandler.Handler),
      ('/recovery/(.+)?', RecoveryHandler.Handler),
      ('/rss', RssHandler.Handler),
      ('/api/usuarios/github', APIGitHubHandler.Handler),
      ('/api/usuarios/twitter', APITwitterHandler.Handler),
      ('/api/usuarios/hackernews', APIHackerNewsHandler.Handler),
  ], debug=True)
  util.run_wsgi_app(application)
Example #5
0
def main():
  """Main program.

  This is invoked when this package is referenced from app.yaml.
  """
  application = webapp.WSGIApplication([('/([^/]+)/(.*)', ZipHandler)])
  util.run_wsgi_app(application)
Example #6
0
def main():
    webapputil.run_wsgi_app(webapp.WSGIApplication([
            (r'/L/([A-Z0-9]+)', QRCodeRequest),
            (r'/', MainPage),
            (r'/new', NewQRCode),
            (r'.*', CatchAll),
        ], debug=False))
def main():
  if os.environ["SERVER_SOFTWARE"].startswith("Devel"):
    logging.warn("You are using deferred in a deprecated fashion. Please change"
                 " the request handler path for /_ah/queue/deferred in app.yaml"
                 " to $PYTHON_LIB/google/appengine/ext/deferred/handler.py to"
                 " avoid encountering import errors.")
  run_wsgi_app(application)
Example #8
0
def main():
    """ Main entry point. """
    import os
    if os.environ.get('SERVER_SOFTWARE') == 'Development/1.0':
        # this seems to be a dev_appserver.py bug. causes unicode errors when trying to process the request
        os.environ['QUERY_STRING'] = str(os.environ['QUERY_STRING'])
    util.run_wsgi_app(APP)
Example #9
0
def main():

	application = webapp.WSGIApplication([
										('/', MainHandler),
										('/oauth/complete', CompleteAuthorisationHandler),

										('/u/new', NewUserHandler), 
										('/u/authorise', AuthoriseUserHandler),
										('/u/authorise/complete', AuthoriseUserCompleteHandler),
										('/u/(.*)', UserHandler),
										('/u/new', NewUserHandler), 
										
										## all about the challenges.
										('/challenge',  ChallengeSelectHandler), 
										
										('/challenge/start',  ChallengeHandler), 
										('/challenge/complete',  ChallengeCompleteHandler), 
										
										## hi scores tables
										('/hiscores/by/user', UserHiScoreHandler),
										('/hiscores/by/place/(.*)', PlaceHiScoreHandler),
										('/hiscores/by/score', HiScoreHandler),
										
										('/task/populate', PopulateHandler),
										],
										 debug=True)
	util.run_wsgi_app(application)
Example #10
0
def main():
    application = webapp.WSGIApplication([('^/signup/$', SignupHandler),
                                            ('^/signin/$', SigninHandler),
                                            ('^/signout/$', SignoutHandler),
                                            ('/.*', NotFoundHandler)],
                                         debug=True)
    util.run_wsgi_app(application)
def main():
  application = webapp.WSGIApplication([('/', MainHandler),
                                        ('/getdetails/(.*)',
                                         UserDetailsHandler),
                                        ('/_ah/login_required', OpenIDHandler)],
                                       debug=True)
  util.run_wsgi_app(application)
Example #12
0
def main():
  application = webapp.WSGIApplication([
    ('/', MainHandler),
    ('/form', FormHandler),
    ('/json', JsonHandler),
  ], debug=True)
  util.run_wsgi_app(application)
Example #13
0
def main():
    application = webapp.WSGIApplication([
                                         ('/', MainHandler),
                                         ('/view', Viewer)
                                         ],
                                         debug=True)
    util.run_wsgi_app(application)
Example #14
0
def main():
    application = webapp.WSGIApplication([('/', IndexHandler),
                                          ('/_ah/xmpp/message/chat/?', ChatGameHandler),
                                          ('/play/?', GameHandler),
                                          ],
                                         debug=True)
    util.run_wsgi_app(application)
Example #15
0
def main():
    application = webapp.WSGIApplication([
        ('/', MainHandler),
        ('/comment/(.+)', CommentHandler),
        ('/worker/user', UserWorker),
      ], debug=True)
    util.run_wsgi_app(application)
Example #16
0
def main():
    application = webapp.WSGIApplication([('/', MainHandler),
                                          ('/show', twitter_methods.Tweet),
                                          ('/twitter', twitter_auth.Authenticate_for_Twitter),
                                          ('/twitter/callback', twitter_auth.Authenticate_for_Twitter_Callback)],
                                         debug=True)
    util.run_wsgi_app(application)
Example #17
0
def main():
    application = webapp.WSGIApplication([
    ('/sso/v0', SSOV0Handler),
    ('/sso/x0', SSOX0Handler)
    ],
                                         debug=True)
    util.run_wsgi_app(application)
Example #18
0
def main():
	application = webapp.WSGIApplication([
			('/updateStatus', UpdateHandler),
			('/homeTimeline', HomeTimelineHandler),
			('/', MainHandler),
		], debug=True)
	util.run_wsgi_app(application)
Example #19
0
def main():
    # Ensure the Django zipfile is in the path if required.
    if have_django_zip and django_zip_path not in sys.path:
        sys.path.insert(1, django_zip_path)

    application = webapp.WSGIApplication([("/cronjob/alarm", Alarm)], debug=True)
    util.run_wsgi_app(application)
Example #20
0
def main():
    application = webapp.WSGIApplication([
    ('/avatar/([0-9]+)/(large|normal|mini)', AvatarHandler),
    ('/navatar/([0-9]+)/(large|normal|mini)', NodeAvatarHandler)
    ],
                                         debug=True)
    util.run_wsgi_app(application)
Example #21
0
def main():
  application = webapp.WSGIApplication([
  ('/inputform', InputformHandler), 
  ('/(.*)', MainHandler),
  ],
                                       debug=True)
  util.run_wsgi_app(application)
Example #22
0
def main():
  application = webapp.WSGIApplication([
                                    ('/call', CallHandler),
                                    ('/record', RecordHandler),
                                    ('/', IndexHandler)],
                                       debug=True)
  util.run_wsgi_app(application)
Example #23
0
def main():
    application = webapp2.WSGIApplication(
          [('/', MainHandler),
           (r'/browse/(.*)/(.*)', BrowseServices),
           ('/categories', CatHandler),
          ], debug=True)
    run_wsgi_app(application)
Example #24
0
def main():
    application = webapp.WSGIApplication([
        ('/health/feeds/profile/ui/([\w.]+)/files', FileFeed),
        ('/health/feeds/profile/ui/([\w.]+)/files/([\w.]+)', FileEntry),
        ('/health/feeds/profile/ui/([\w.]+)/files/([\w.]+)/content', FileContent),
    ], debug=True)
    util.run_wsgi_app(application)
Example #25
0
def main():
    application = webapp.WSGIApplication([
    ('/s/(.*)/f/(.*)/o/(.*)/', RequestResultsForValueHandler), ('/s/(.*)/f/(.*)/', RequestResultsForValueHandler), ('/s/(.*)/', RequestResultsForValueHandler),
    ('/top/f/(.*)/', RequestResultsforTop100), ('/top/', RequestResultsforTop100),
    ('/', RootHandler)],
    debug=False)
    util.run_wsgi_app(application)
Example #26
0
def main():
    application = webapp.WSGIApplication([
        ('/stabs/create', StabsCreateHandler),
        ('/stabs/delete', StabsDeleteHandler),
        ('/stabs/qunit', TestsRunHandler)
    ], debug=True)
    util.run_wsgi_app(application)
Example #27
0
def main():
    app = webapp.WSGIApplication([
        ('/json', JSONHandler),
        ('/', HelloWorldPage),
        ('/welcome.html', WelcomePage)
        ], debug=True)
    util.run_wsgi_app(app)
Example #28
0
def main():
	application = webapp.WSGIApplication([
		(StrategyPage.url, StrategyPage),
		(StrategyExecutionPage.url, StrategyExecutionPage),
		], debug=True)

	run_wsgi_app(application)
Example #29
0
def main():
    application = webapp.WSGIApplication(
                                          [('/admin', AdminHandler),
                                           ('/admin/new', BookHandler),
                                           ('/images', ImageHandler)],
                                          debug=True)
    util.run_wsgi_app(application)
Example #30
0
def main():
	ROUTES = [
		('/cron/sales', CronKickoffSales)
	]

	application = webapp.WSGIApplication(ROUTES, debug=True)
	run_wsgi_app(application)
Example #31
0
def main():
    util.run_wsgi_app(application)
Example #32
0
def main():
	util.run_wsgi_app(webapp.WSGIApplication([

		('.*', UploadHandler),
		], debug=True))
Example #33
0
def main():
    run_wsgi_app(application)
Example #34
0
def main():
    application = webapp.WSGIApplication([('/',MainPage),
                                          ('/event/.*',Event),
                                          ('/view/.*',ViewHandler),
                                          ('/landing',LandingPage)],debug = True)
    util.run_wsgi_app(application)
Example #35
0
def main():
    application = webapp.WSGIApplication([('/my/nodes', MyNodesHandler)],
                                         debug=True)
    util.run_wsgi_app(application)
Example #36
0
def main():
    run_wsgi_app(app)
Example #37
0
def main():
    logging.getLogger().setLevel(logging.DEBUG)
    run_wsgi_app(application)
Example #38
0
def main():
    # Create a Django application for WSGI.
    application = django.core.handlers.wsgi.WSGIHandler()

    # Run the WSGI CGI handler with that application.
    util.run_wsgi_app(application)
Example #39
0
def main():
    application = webapp.WSGIApplication([
    ('/', MainHandler),
    ('/oauth2callback', OAuth2Handler),
    ], debug=True)
    util.run_wsgi_app(application)
Example #40
0
def main():
    application = webapp.WSGIApplication([("/", TopHandler)], debug=True)
    util.run_wsgi_app(application)
Example #41
0
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app


class Index(webapp.RequestHandler):
    def get(self):
        self.redirect('%s/index.html' % self.request.path)


if __name__ == "__main__":
    run_wsgi_app(webapp.WSGIApplication([
        ('.*', Index),
    ]))
Example #42
0
def main():
  run_wsgi_app(applications[os.environ['HTTP_HOST']])
Example #43
0
def main():
    """main function"""
    run_wsgi_app(
        webapp.WSGIApplication([(r'/.*', SiteDownHandler)], debug=False))
Example #44
0
def real_main():
    run_wsgi_app(application)
Example #45
0
def main():
  app = webapp.WSGIApplication([('/rpc', RPCHandler)], debug=True)
  util.run_wsgi_app(app)
Example #46
0
def main():
    util.run_wsgi_app(app)
Example #47
0
def main():
    run_wsgi_app(application(True))
Example #48
0
def profiled_main():
    run_wsgi_app(application)
Example #49
0
File: ras.py Project: baskus/prendo
		submit = None
		try:
			submit = json_data["submit"]
		except KeyError, ex:
			logging.error( "RequestAndSubmitHandler.post: Failed to extract " \
				+ "submit from json data. Data: \"%s\". Exception: %s",
				data, repr( ex ) )
			self.error( 400 )		#Send a 400 Bad Request
			return
		
		#
		# Check if both the request and submit was empty. If so then we can't
		# do anything but return fail.
		#
		if request is None and submit is None:
			logging.error( "RequestAndSubmitHandler.post: Got empty request " \
				+ "and submit" )
			self.error( 400 )		#Send a 400 Bad Request
			return
		
		location = self.request.headers["X-AppEngine-country"].lower()
		success = self.handle_submit(submit, location)
		request_response = self.handle_request(request, location)
		self.send_response(success, request_response)

application = webapp2.WSGIApplication( [
	( "/ras", RequestAndSubmitHandler ) ] )

if __name__ == "__main__":
	run_wsgi_app( application )
Example #50
0
def main():
    application = webapp.WSGIApplication(
        [('/api/fetch', FetchInformationHandler),
         ('/api/image', FetchImageHandler)],
        debug=True)
    util.run_wsgi_app(application)
Example #51
0
def main():
    application = webapp.WSGIApplication([('/gavin', GavinHandler)],
                                         debug=True)
    run_wsgi_app(application)
Example #52
0
def main ():
  application = webapp.WSGIApplication ([('/(.*)', MainHandler)], debug=True)
  util.run_wsgi_app (application)
Example #53
0
from google.appengine.ext.webapp.util import run_wsgi_app
from main import app

run_wsgi_app(app)
Example #54
0
            template_values['site_domain'] = site.domain
            template_values['site_name'] = site.title
            template_values['site_slogan'] = site.slogan
            template_values['feed_url'] = 'http://' + template_values[
                'site_domain'] + '/index.xml'
            template_values['site_updated'] = datetime.datetime.now()
            q = db.GqlQuery(
                "SELECT * FROM Topic WHERE node = :1 ORDER BY created DESC LIMIT 10",
                node)
            topics = []
            for topic in q:
                topics.append(topic)
            template_values['topics'] = topics
            template_values['feed_title'] = site.title + u' › ' + node.title
            path = os.path.join(os.path.dirname(__file__), 'tpl', 'feed',
                                'index.xml')
            output = template.render(path, template_values)
            memcache.set('feed_node_' + node.name, output, 7200)
        self.response.headers['Content-type'] = 'application/xml;charset=UTF-8'
        self.response.out.write(output)


application = webapp.WSGIApplication(
    [('/index.xml', FeedHomeHandler), ('/read.xml', FeedReadHandler),
     ('/feed/v2ex.rss', FeedHomeHandler),
     ('/feed/([0-9a-zA-Z\-\_]+).xml', FeedNodeHandler)],
    debug=True)

if __name__ == '__main__':
    util.run_wsgi_app(application)
def main():
    app = webapp2.WSGIApplication([(config.result_task_url, ResultTaskHandler)], debug=True)
    run_wsgi_app(app)
Example #56
0
def main():
    """ execution begins """
    run_wsgi_app(APPLICATION)
Example #57
0
def main():
    """ this program starts here """
    try:
        run_wsgi_app(APP)
    except DeadlineExceededError:
        print 'retry\n'
Example #58
0
def main():
    application = webapp.WSGIApplication([('/index.xml', FeedHomeHandler),
                                          ('/feed/v2ex.rss', FeedHomeHandler)],
                                         debug=True)
    util.run_wsgi_app(application)
Example #59
0
def main():
  fix_path.fix_sys_path()
  run_wsgi_app(application)
Example #60
0
def main():
  # NOTE: Set debug to True when pushing to testing changes
  application = webapp.WSGIApplication(HANDLERS, debug=True)
  run_wsgi_app(application)