thirdparty/google_appengine/google/appengine/tools/dev_appserver_main.py
changeset 828 f5fd65cc3bf3
parent 149 f2e327a7c5de
child 1278 a7766286a7be
equal deleted inserted replaced
827:88c186556a80 828:f5fd65cc3bf3
    69 import traceback
    69 import traceback
    70 import tempfile
    70 import tempfile
    71 
    71 
    72 from google.appengine.api import yaml_errors
    72 from google.appengine.api import yaml_errors
    73 from google.appengine.tools import appcfg
    73 from google.appengine.tools import appcfg
       
    74 from google.appengine.tools import appengine_rpc
    74 from google.appengine.tools import dev_appserver
    75 from google.appengine.tools import dev_appserver
    75 
    76 
    76 
    77 
    77 DEFAULT_ADMIN_CONSOLE_SERVER = 'appengine.google.com'
    78 DEFAULT_ADMIN_CONSOLE_SERVER = 'appengine.google.com'
    78 
    79 
   269     option_dict: The dict of command line options.
   270     option_dict: The dict of command line options.
   270 
   271 
   271   Returns:
   272   Returns:
   272     A HttpRpcServer.
   273     A HttpRpcServer.
   273   """
   274   """
   274   server = appcfg.HttpRpcServer(
   275   server = appengine_rpc.HttpRpcServer(
   275       option_dict[ARG_ADMIN_CONSOLE_SERVER],
   276       option_dict[ARG_ADMIN_CONSOLE_SERVER],
   276       lambda: ('unused_email', 'unused_password'),
   277       lambda: ('unused_email', 'unused_password'),
       
   278       appcfg.GetUserAgent(),
       
   279       appcfg.GetSourceName(),
   277       host_override=option_dict[ARG_ADMIN_CONSOLE_HOST])
   280       host_override=option_dict[ARG_ADMIN_CONSOLE_HOST])
   278   server.authenticated = True
   281   server.authenticated = True
   279   return server
   282   return server
   280 
   283 
   281 
   284