diff --git a/appveyor.yml b/appveyor.yml index a8918b2f..937db675 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -10,10 +10,6 @@ environment: COVERAGE_PROCESS_START: gluon/tests/coverage.ini PYTHON_ARCH: "64" - - PYTHON: "C:/Python35" - COVERAGE_PROCESS_START: gluon/tests/coverage.ini - PYTHON_ARCH: "64" - - PYTHON: "C:/Python36" COVERAGE_PROCESS_START: gluon/tests/coverage.ini PYTHON_ARCH: "64" diff --git a/gluon/shell.py b/gluon/shell.py index 92b6334b..20d58de3 100644 --- a/gluon/shell.py +++ b/gluon/shell.py @@ -241,13 +241,16 @@ def run( if not cron_job and not scheduler_job and \ sys.stdin and not sys.stdin.name == '/dev/null': confirm = raw_input( - 'application %s does not exist, create (y/n)?' % a) + 'application %s does not exist, create (y/N)?' % a) else: logging.warn('application does not exist and will not be created') return if confirm.lower() in ('y', 'yes'): os.mkdir(adir) fileutils.create_app(adir) + else: + logging.warn('application folder does not exist and has not been created as requested') + return if force_migrate: c = 'appadmin' # Load all models (hack already used for appadmin controller) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index c0fb955e..5c82c17c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1501,7 +1501,7 @@ class SQLFORM(FORM): if readonly and not ignore_rw and not field.readable: continue - if record: + if record and fieldname not in [x.name for x in extra_fields]: default = record[fieldname] else: default = field.default diff --git a/web2py.py b/web2py.py index 875642da..5c8c91c6 100755 --- a/web2py.py +++ b/web2py.py @@ -19,6 +19,9 @@ else: # process -f (--folder) option if '-f' in sys.argv: fi = sys.argv.index('-f') + # maybe session2trash arg + if '-A' in sys.argv and fi > sys.argv.index('-A'): + fi = None elif '--folder' in sys.argv: fi = sys.argv.index('--folder') else: