Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user