From 33fe831287074eed6987f979621ebed3c8cd93d9 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sat, 6 Apr 2019 20:05:39 -0700 Subject: [PATCH] support web2py.py --GAE {app-name}, thanks Paolo --- gluon/packages/dal | 2 +- gluon/widget.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gluon/packages/dal b/gluon/packages/dal index e973f27b..0c2ba9d7 160000 --- a/gluon/packages/dal +++ b/gluon/packages/dal @@ -1 +1 @@ -Subproject commit e973f27b69a8499e4e30e5663f3fba74bf87364c +Subproject commit 0c2ba9d71f426bc6cc2347bd4ce111b18308fbe6 diff --git a/gluon/widget.py b/gluon/widget.py index 238a5674..0cbe6567 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -618,7 +618,7 @@ def console(): '--GAE', default=None, dest='gae', - help="'-G configure' will create app.yaml and gaehandler.py") + help="'-G {gae app name}' will create app.yaml and gaehandler.py") msg = ('password to be used for administration ' '(use -a "" to reuse the last password))') @@ -937,7 +937,9 @@ def console(): if options.gae: if not os.path.exists('app.yaml'): - name = input("Your GAE app name: ") + name = options.gae + if name == 'configure': + name = input("Your GAE app name: ") content = open(os.path.join('examples', 'app.example.yaml'), 'rb').read() open('app.yaml', 'wb').write(content.replace("yourappname", name)) else: