def main(): application = webapp.WSGIApplication([ ('/', handlers.about.AboutHandler), ('/ls', handlers.lyricsmash.LyricsmashHandler), ('/ldb', handlers.loaddb.LoadDbHandler), ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ("/admin/new/?", NewEntryHandler), ("/admin/edit/([^/]+)/?", EditEntryHandler), ("/tasks/searchindexing", search.SearchIndexing) ], debug=True) run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ('/emails(\.json)*', OutboundHandler), InboundHandler.mapping() ], debug=True) util.run_wsgi_app(application)
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)
def main(): """Main program. This is invoked when this package is referenced from app.yaml. """ application = webapp.WSGIApplication([('/([^/]+)/(.*)', ZipHandler)]) util.run_wsgi_app(application)
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)
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)
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)
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)
def main(): application = webapp.WSGIApplication([ ('/', MainHandler), ('/form', FormHandler), ('/json', JsonHandler), ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ('/', MainHandler), ('/view', Viewer) ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([('/', IndexHandler), ('/_ah/xmpp/message/chat/?', ChatGameHandler), ('/play/?', GameHandler), ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ('/', MainHandler), ('/comment/(.+)', CommentHandler), ('/worker/user', UserWorker), ], debug=True) util.run_wsgi_app(application)
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)
def main(): application = webapp.WSGIApplication([ ('/sso/v0', SSOV0Handler), ('/sso/x0', SSOX0Handler) ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ('/updateStatus', UpdateHandler), ('/homeTimeline', HomeTimelineHandler), ('/', MainHandler), ], debug=True) util.run_wsgi_app(application)
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)
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)
def main(): application = webapp.WSGIApplication([ ('/inputform', InputformHandler), ('/(.*)', MainHandler), ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([ ('/call', CallHandler), ('/record', RecordHandler), ('/', IndexHandler)], debug=True) util.run_wsgi_app(application)
def main(): application = webapp2.WSGIApplication( [('/', MainHandler), (r'/browse/(.*)/(.*)', BrowseServices), ('/categories', CatHandler), ], debug=True) run_wsgi_app(application)
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)
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)
def main(): application = webapp.WSGIApplication([ ('/stabs/create', StabsCreateHandler), ('/stabs/delete', StabsDeleteHandler), ('/stabs/qunit', TestsRunHandler) ], debug=True) util.run_wsgi_app(application)
def main(): app = webapp.WSGIApplication([ ('/json', JSONHandler), ('/', HelloWorldPage), ('/welcome.html', WelcomePage) ], debug=True) util.run_wsgi_app(app)
def main(): application = webapp.WSGIApplication([ (StrategyPage.url, StrategyPage), (StrategyExecutionPage.url, StrategyExecutionPage), ], debug=True) run_wsgi_app(application)
def main(): application = webapp.WSGIApplication( [('/admin', AdminHandler), ('/admin/new', BookHandler), ('/images', ImageHandler)], debug=True) util.run_wsgi_app(application)
def main(): ROUTES = [ ('/cron/sales', CronKickoffSales) ] application = webapp.WSGIApplication(ROUTES, debug=True) run_wsgi_app(application)
def main(): util.run_wsgi_app(application)
def main(): util.run_wsgi_app(webapp.WSGIApplication([ ('.*', UploadHandler), ], debug=True))
def main(): run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([('/',MainPage), ('/event/.*',Event), ('/view/.*',ViewHandler), ('/landing',LandingPage)],debug = True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([('/my/nodes', MyNodesHandler)], debug=True) util.run_wsgi_app(application)
def main(): run_wsgi_app(app)
def main(): logging.getLogger().setLevel(logging.DEBUG) run_wsgi_app(application)
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)
def main(): application = webapp.WSGIApplication([ ('/', MainHandler), ('/oauth2callback', OAuth2Handler), ], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([("/", TopHandler)], debug=True) util.run_wsgi_app(application)
#!/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), ]))
def main(): run_wsgi_app(applications[os.environ['HTTP_HOST']])
def main(): """main function""" run_wsgi_app( webapp.WSGIApplication([(r'/.*', SiteDownHandler)], debug=False))
def real_main(): run_wsgi_app(application)
def main(): app = webapp.WSGIApplication([('/rpc', RPCHandler)], debug=True) util.run_wsgi_app(app)
def main(): util.run_wsgi_app(app)
def main(): run_wsgi_app(application(True))
def profiled_main(): run_wsgi_app(application)
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 )
def main(): application = webapp.WSGIApplication( [('/api/fetch', FetchInformationHandler), ('/api/image', FetchImageHandler)], debug=True) util.run_wsgi_app(application)
def main(): application = webapp.WSGIApplication([('/gavin', GavinHandler)], debug=True) run_wsgi_app(application)
def main (): application = webapp.WSGIApplication ([('/(.*)', MainHandler)], debug=True) util.run_wsgi_app (application)
from google.appengine.ext.webapp.util import run_wsgi_app from main import app run_wsgi_app(app)
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)
def main(): """ execution begins """ run_wsgi_app(APPLICATION)
def main(): """ this program starts here """ try: run_wsgi_app(APP) except DeadlineExceededError: print 'retry\n'
def main(): application = webapp.WSGIApplication([('/index.xml', FeedHomeHandler), ('/feed/v2ex.rss', FeedHomeHandler)], debug=True) util.run_wsgi_app(application)
def main(): fix_path.fix_sys_path() run_wsgi_app(application)
def main(): # NOTE: Set debug to True when pushing to testing changes application = webapp.WSGIApplication(HANDLERS, debug=True) run_wsgi_app(application)