Merge branch 'master' of github.com:web2py/web2py

This commit is contained in:
mdipierro
2020-05-31 18:22:26 -07:00
4 changed files with 8 additions and 6 deletions
+4 -1
View File
@@ -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)
+1 -1
View File
@@ -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