예제 #1
0
def local_shell(appid=None, server=None):
    """
    Open a local shell for this application
    
    The builtin 'remote_api' must be set to 'on' in your app.yaml file.
    The default will use the remote api against your local dev server,
    which is at 'localhost:8080'
    
        $ fab local_shell
        
        Use a different application id:
        $ fab local_shell:different-id
        
        Point to a different server
        $ fab local_shell:server=localhost:8081
    """
    server = server or 'localhost:8080'

    application, server = prep_shell('dev~', appid, server)

    from google.appengine.tools import remote_api_shell
    from google.appengine.tools import appengine_rpc

    remote_api_shell.remote_api_shell(server, application,
                                      remote_api_shell.DEFAULT_PATH, False,
                                      appengine_rpc.HttpRpcServer)
예제 #2
0
def local_shell(appid=None, server=None):
    """
    Open a local shell for this application
    
    The builtin 'remote_api' must be set to 'on' in your app.yaml file.
    The default will use the remote api against your local dev server,
    which is at 'localhost:8080'
    
        $ fab local_shell
        
        Use a different application id:
        $ fab local_shell:different-id
        
        Point to a different server
        $ fab local_shell:server=localhost:8081
    """
    server = server or 'localhost:8080'
    
    application, server = prep_shell('dev~', appid, server)
    
    from google.appengine.tools import remote_api_shell
    from google.appengine.tools import appengine_rpc
    
    remote_api_shell.remote_api_shell(server, application, 
        remote_api_shell.DEFAULT_PATH, False, appengine_rpc.HttpRpcServer)
예제 #3
0
def remote_shell(appid=None, server=None):
    """
    Open a remote shell for this application
    
    The builtin 'remote_api' must be set to 'on' in your app.yaml file.
    
        $ fab remote_shell
        
        Use a different application id:
        $ fab remote_shell:different-id
        
        Point to a different server
        $ fab remote_shell:server=other-app.appspot.com
    """
    
    application, server = prep_shell('s~', appid, server)
    
    from google.appengine.tools import remote_api_shell
    from google.appengine.tools import appengine_rpc
    
    remote_api_shell.remote_api_shell(server, application, 
        remote_api_shell.DEFAULT_PATH, True, appengine_rpc.HttpRpcServer)