def create_python27_start_cmd(app_name, login_ip, port, load_balancer_host, xmpp_ip):
 db_location = DATASTORE_PATH
 cmd = ['/usr/bin/python2', (constants.APPSCALE_HOME + '/AppServer/dev_appserver.py'), ('--port ' + str(port)), ('--admin_port ' + str((port + 10000))), ('--login_server ' + login_ip), '--skip_sdk_update_check', ('--nginx_host ' + str(load_balancer_host)), '--require_indexes', '--enable_sendmail', ('--xmpp_path ' + xmpp_ip), ('--php_executable_path=' + str(PHP_CGI_LOCATION)), ((('--uaserver_path ' + db_location) + ':') + str(constants.UA_SERVER_PORT)), ((('--datastore_path ' + db_location) + ':') + str(constants.DB_SERVER_PORT)), (('/var/apps/' + app_name) + '/app'), ('--host ' + appscale_info.get_private_ip())]
 if (app_name in TRUSTED_APPS):
  cmd.extend([TRUSTED_FLAG])
 return ' '.join(cmd)

def create_python27_start_cmd ( app_name , login_ip , port , load_balancer_host , xmpp_ip ) : db_location = DATASTORE_PATH cmd = [ '/usr/bin/python2' , ( constants . APPSCALE_HOME + '/AppServer/dev_appserver.py' ) , ( '--port ' + str ( port ) ) , ( '--admin_port ' + str ( ( port + 10000 ) ) ) , ( '--login_server ' + login_ip ) , '--skip_sdk_update_check' , ( '--nginx_host ' + str ( load_balancer_host ) ) , '--require_indexes' , '--enable_sendmail' , ( '--xmpp_path ' + xmpp_ip ) , ( '--php_executable_path=' + str ( PHP_CGI_LOCATION ) ) , ( ( ( '--uaserver_path ' + db_location ) + ':' ) + str ( constants . UA_SERVER_PORT ) ) , ( ( ( '--datastore_path ' + db_location ) + ':' ) + str ( constants . DB_SERVER_PORT ) ) , ( ( '/var/apps/' + app_name ) + '/app' ) , ( '--host ' + appscale_info . get_private_ip ( ) ) ] if ( app_name in TRUSTED_APPS ) : cmd . extend ( [ TRUSTED_FLAG ] ) return ' ' . join ( cmd )
creates the start command to run the python application server .