equal
deleted
inserted
replaced
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 |