def ConfigureRemoteApi(app_id, path, auth_func, servername=None, rpc_server_factory=appengine_rpc.HttpRpcServer, rtok=None, secure=False, services=None, default_auth_domain=None, save_cookies=False, use_remote_datastore=True):
 if ((not servername) and (not app_id)):
  raise ConfigurationError('app_id or servername required')
 if (not servername):
  servername = ('%s.appspot.com' % (app_id,))
 server = rpc_server_factory(servername, auth_func, GetUserAgent(), GetSourceName(), save_cookies=save_cookies, debug_data=False, secure=secure)
 if (not app_id):
  app_id = GetRemoteAppIdFromServer(server, path, rtok)
 ConfigureRemoteApiFromServer(server, path, app_id, services, default_auth_domain, use_remote_datastore)
 return server

def ConfigureRemoteApi ( app_id , path , auth_func , servername = None , rpc_server_factory = appengine_rpc . HttpRpcServer , rtok = None , secure = False , services = None , default_auth_domain = None , save_cookies = False , use_remote_datastore = True ) : if ( ( not servername ) and ( not app_id ) ) : raise ConfigurationError ( 'app_id or servername required' ) if ( not servername ) : servername = ( '%s.appspot.com' % ( app_id , ) ) server = rpc_server_factory ( servername , auth_func , GetUserAgent ( ) , GetSourceName ( ) , save_cookies = save_cookies , debug_data = False , secure = secure ) if ( not app_id ) : app_id = GetRemoteAppIdFromServer ( server , path , rtok ) ConfigureRemoteApiFromServer ( server , path , app_id , services , default_auth_domain , use_remote_datastore ) return server
does necessary setup to allow easy remote access to app engine apis .