<s> """<STR_LIT>""" <EOL> import logging <EOL> import google <EOL> import webapp2 <EOL> from google . appengine . tools . devappserver2 import wsgi_server <EOL> from google . appengine . tools . devappserver2 . admin import admin_request_handler <EOL> from google . appengine . tools . devappserver2 . admin import blobstore_viewer <EOL> from google . appengine . tools . devappserver2 . admin import console <EOL> from google . appengine . tools . devappserver2 . admin import cron_handler <EOL> from google . appengine . tools . devappserver2 . admin import datastore_indexes_viewer <EOL> from google . appengine . tools . devappserver2 . admin import datastore_stats_handler <EOL> from google . appengine . tools . devappserver2 . admin import datastore_viewer <EOL> from google . appengine . tools . devappserver2 . admin import mail_request_handler <EOL> from google . appengine . tools . devappserver2 . admin import memcache_viewer <EOL> from google . appengine . tools . devappserver2 . admin import modules_handler <EOL> from google . appengine . tools . devappserver2 . admin import quit_handler <EOL> from google . appengine . tools . devappserver2 . admin import search_handler <EOL> from google . appengine . tools . devappserver2 . admin import static_file_handler <EOL> from google . appengine . tools . devappserver2 . admin import taskqueue_queues_handler <EOL> from google . appengine . tools . devappserver2 . admin import taskqueue_tasks_handler <EOL> from google . appengine . tools . devappserver2 . admin import xmpp_request_handler <EOL> class AdminApplication ( webapp2 . WSGIApplication ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , dispatch , configuration ) : <EOL> """<STR_LIT>""" <EOL> super ( AdminApplication , self ) . __init__ ( <EOL> [ ( '<STR_LIT>' , datastore_viewer . DatastoreRequestHandler ) , <EOL> ( '<STR_LIT>' , datastore_viewer . DatastoreEditRequestHandler ) , <EOL> ( '<STR_LIT>' , datastore_viewer . DatastoreEditRequestHandler ) , <EOL> ( '<STR_LIT>' , <EOL> datastore_indexes_viewer . DatastoreIndexesViewer ) , <EOL> ( '<STR_LIT>' , datastore_stats_handler . DatastoreStatsHandler ) , <EOL> ( '<STR_LIT>' , console . ConsoleRequestHandler ) , <EOL> ( '<STR_LIT>' , console . ConsoleRequestHandler . restart ) , <EOL> ( '<STR_LIT>' , memcache_viewer . MemcacheViewerRequestHandler ) , <EOL> ( '<STR_LIT>' , blobstore_viewer . BlobstoreRequestHandler ) , <EOL> ( '<STR_LIT>' , blobstore_viewer . BlobRequestHandler ) , <EOL> ( '<STR_LIT>' , taskqueue_queues_handler . TaskQueueQueuesHandler ) , <EOL> ( '<STR_LIT>' , <EOL> taskqueue_tasks_handler . TaskQueueTasksHandler ) , <EOL> ( '<STR_LIT>' , cron_handler . CronHandler ) , <EOL> ( '<STR_LIT>' , xmpp_request_handler . XmppRequestHandler ) , <EOL> ( '<STR_LIT>' , mail_request_handler . MailRequestHandler ) , <EOL> ( '<STR_LIT>' , quit_handler . QuitHandler ) , <EOL> ( '<STR_LIT>' , search_handler . SearchIndexesListHandler ) , <EOL> ( '<STR_LIT>' , search_handler . SearchDocumentHandler ) , <EOL> ( '<STR_LIT>' , search_handler . SearchIndexHandler ) , <EOL> ( '<STR_LIT>' , static_file_handler . StaticFileHandler ) , <EOL> ( '<STR_LIT>' , modules_handler . ModulesHandler ) , <EOL> webapp2 . Route ( '<STR_LIT:/>' , <EOL> webapp2 . RedirectHandler , <EOL> defaults = { '<STR_LIT>' : '<STR_LIT>' } ) ] , <EOL> debug = True ) <EOL> self . dispatcher = dispatch <EOL> self . configuration = configuration <EOL> class AdminServer ( wsgi_server . WsgiServer ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , host , port , dispatch , configuration , xsrf_token_path ) : <EOL> """<STR_LIT>""" <EOL> self . _host = host <EOL> self . _xsrf_token_path = xsrf_token_path <EOL> super ( AdminServer , self ) . __init__ ( ( host , port ) , <EOL> AdminApplication ( dispatch , configuration ) ) <EOL> def start ( self ) : <EOL> """<STR_LIT>""" <EOL> admin_request_handler . AdminRequestHandler . init_xsrf ( self . _xsrf_token_path ) <EOL> super ( AdminServer , self ) . start ( ) <EOL> logging . info ( '<STR_LIT>' , self . _host , <EOL> self . port ) <EOL> def quit ( self ) : <EOL> """<STR_LIT>""" <EOL> super ( AdminServer , self ) . quit ( ) <EOL> console . ConsoleRequestHandler . quit ( ) </s>
