scripts/interactive.py
changeset 2039 07f46319d24f
parent 2024 43e5b515b71d
child 2046 1fb1c628ad60
equal deleted inserted replaced
2038:c790eb9955aa 2039:07f46319d24f
    16 
    16 
    17 """This module supplies an interactive shell with remote api configured.
    17 """This module supplies an interactive shell with remote api configured.
    18 
    18 
    19 Usage is simple:
    19 Usage is simple:
    20 
    20 
    21 App Engine interactive console for srabbelier-melange
    21 App Engine interactive console
    22 >>> from soc.models.user import User
    22 >>> from soc.models.user import User
    23 >>> gen = lambda: User.all()
    23 >>> gen = lambda: User.all()
    24 >>> it = deepFetch(gen)
    24 >>> it = deepFetch(gen)
    25 >>> result = [i for i in it]
    25 >>> result = [i for i in it]
    26 """
    26 """
   134   if len(sys.argv) < 2:
   134   if len(sys.argv) < 2:
   135     print "Usage: %s app_id [host]" % (sys.argv[0],)
   135     print "Usage: %s app_id [host]" % (sys.argv[0],)
   136     sys.exit(1)
   136     sys.exit(1)
   137 
   137 
   138   main(sys.argv[1:])
   138   main(sys.argv[1:])
   139