Compare commits

...

83 Commits

Author SHA1 Message Date
dlage a65234478c Merge branch 'master' into fix-missing-folders-in-script 2019-05-23 14:32:04 +01:00
mdipierro 94af61e732 better cron limits number of threads, thanks P.Pastori 2019-05-22 21:44:42 -07:00
mdipierro f258cbecee syncing pydal with restapi 2019-05-18 22:25:08 -07:00
mdipierro 2ccd7a86ec better thread handling in GUI and more resiliant start/stop, thanks P.Pastori 2019-05-18 22:21:03 -07:00
mdipierro 1790688357 some changes in permissions, thanks Paolo 2019-05-18 22:18:24 -07:00
dlage 30a0ac6a1b Refactor methods from gluon/admin to gluon/fileutils 2019-05-16 18:51:26 +01:00
mdipierro 148e9e8629 removed cicrular dependency in copystream, thanks Paolo 2019-05-13 20:41:27 -07:00
mdipierro 95bbaf6a38 more regex improvements, thanks Paolo Pastori 2019-05-12 19:39:33 -07:00
mdipierro 0372c50ef5 restored some missing regex, thanks Paolo Pastori 2019-05-12 17:34:24 -07:00
mdipierro 3ed69380f2 one logger per app and fixed some threading issues with newcron, thanks Paolo Pastori 2019-05-11 13:21:40 -07:00
mdipierro 55aa94bbb9 myregex is gone. Thanks Paolo Pastori 2019-05-11 13:18:03 -07:00
mdipierro caf3010408 better regex and improvements in compileapp, thank you Paolo Pastori 2019-05-09 23:30:07 -07:00
mdipierro f9c0c478df sync 2019-05-07 21:20:26 -07:00
mdipierro c5ab91041d use testing app, not welcome for test_web, thanks Paolo 2019-05-07 20:51:48 -07:00
mdipierro ee3b63b792 fixed create missing folders, thanks Paolo 2019-05-05 23:15:09 -07:00
mdipierro fc256343a7 better setup and teardown in test_web, thanks Paolo 2019-05-05 20:53:20 -07:00
mdipierro c59186fa64 fixed missing folder in start scheduler 2019-05-05 20:49:56 -07:00
mdipierro 091f13df43 fixed logic for running tests and using welcome for testing, thanks Paolo 2019-05-05 20:34:28 -07:00
mdipierro 621d9e6d83 Merge pull request #2194 from leonelcamara/patch-31
Fixes #2182 possibly Fixes #2190
2019-05-05 20:30:40 -07:00
mdipierro 42528987af regex fix, thanks Paolo 2019-05-04 10:20:44 -07:00
mdipierro c258d10d15 removed options_std.py, no longer necssary since options can be passed as command line arguments 2019-05-03 20:07:19 -07:00
mdipierro ca0b72d7b1 fixed a few more typos and better testing, thanks Paolo 2019-05-03 20:03:41 -07:00
mdipierro eba2455298 fixed typo, thanks Paolo 2019-05-03 20:01:27 -07:00
Leonel Câmara be81e69c2b fix tests for new json serializer 2019-05-02 16:21:34 +01:00
Leonel Câmara e3a981fc2c Fixes #2182 possibly Fixes #2190 2019-05-02 16:09:10 +01:00
mdipierro 1a169b340e fixed python3 compatibility 2019-05-01 21:45:12 -07:00
mdipierro 20416b4d1c syncing 2019-05-01 21:23:34 -07:00
mdipierro 76c5bad895 Merge branch 'master' of github.com:web2py/web2py 2019-05-01 21:10:03 -07:00
mdipierro 15daf70298 pydal sync 2019-05-01 21:09:36 -07:00
mdipierro 1c08c07a0f new command line options 2019-05-01 21:07:52 -07:00
mdipierro b291239a41 Merge pull request #2189 from nicozanf/patch-1
PY2 small print fix
2019-04-28 11:29:03 -07:00
mdipierro 6f12be7e20 even better option processing in widget.py, thanks Paolo 2019-04-26 22:36:02 -07:00
Nico Zanferrari 89c441cdc8 PY2 small print fix 2019-04-24 19:28:46 +02:00
mdipierro 0a9975809c cleanup in main, thanks Paolo 2019-04-23 22:10:53 -07:00
mdipierro 14dee6b466 better shell using create_app, thanks Paolo 2019-04-21 09:27:02 -07:00
mdipierro 9d5a16351b simplify admin by using create_app, thanks Paolo 2019-04-21 09:24:56 -07:00
mdipierro 7c1bb810fc cleaner fileutils and untarring/unzipping in fileutils, thanks Paolo 2019-04-20 13:53:53 -07:00
mdipierro 8a9b2d687e better option handling for the shell, thanks Paolo 2019-04-19 21:23:59 -07:00
mdipierro 0d04b8a511 widget fix, thanks Paolo 2019-04-19 21:22:29 -07:00
mdipierro 2f35117282 better options and regexp, thanks Paolo 2019-04-18 21:32:46 -07:00
mdipierro 563de284f7 better logic for passing parameters to scheduler, thanks Paolo 2019-04-17 21:59:03 -07:00
mdipierro 8c29f8b12a fixed order or sorting in grid 2019-04-13 18:04:43 -07:00
mdipierro 2fbaced689 removed naming conflict from previous commit, thanks Paolo 2019-04-11 21:18:36 -07:00
mdipierro 33335ec3e1 removed redundant os.chdir, thanks paolo 2019-04-11 21:16:54 -07:00
mdipierro 066d9c9ab5 better newcrow and widget, fixed some ssl related bugs, thanks Paolo 2019-04-11 21:15:48 -07:00
mdipierro b96c54cef9 some cleanup and better use of die() function, thanks paolo 2019-04-09 21:49:04 -07:00
mdipierro 59700b8d06 R-2.18.5 2019-04-07 21:16:13 -07:00
mdipierro 455d188da8 removed un-necessary sort exception is sqlform.grid 2019-04-07 16:26:28 -07:00
mdipierro d13a003475 use metavar, thanks Paolo 2019-04-07 09:25:08 -07:00
mdipierro a47deac038 Merge pull request #2166 from leonelcamara/revert-2145-expose
Revert "don't use a regex to find exposed functions"
2019-04-07 09:15:39 -07:00
mdipierro 5667149f8d syncing 2019-04-06 20:59:23 -07:00
mdipierro c9a42c4638 refactoring of widget.py, thanks Paolo 2019-04-06 20:54:16 -07:00
mdipierro 33fe831287 support web2py.py --GAE {app-name}, thanks Paolo 2019-04-06 20:05:39 -07:00
mdipierro f2dcc53a18 cleanup in custom import, thanks Paolo 2019-04-06 19:51:57 -07:00
Leonel Câmara 39b965be7b Revert "don't use a regex to find exposed functions" 2019-04-01 15:24:46 +01:00
mdipierro e637b6b58a removed un-needed IO class in widgets and som refactoring, thanks Paolo 2019-03-31 19:50:02 -07:00
mdipierro 18da4fa7fd request.folder no longer ends with os.sep 2019-03-31 19:46:55 -07:00
mdipierro 66d5faf78f fixed sys.exit value, thanks Paolo 2019-03-30 11:35:34 -07:00
mdipierro cfdee6e065 better logic in running system tests, thanks Paolo 2019-03-30 10:42:01 -07:00
mdipierro 44b93929e2 better regex, thanks Paolo 2019-03-30 10:34:49 -07:00
mdipierro 8c090954fd new custom import works better with recursive imports, thanks Paolo Pastori 2019-03-24 11:28:28 -07:00
mdipierro b4e22bf465 code simplificaton in widget.py, thanks Paolo Pastori 2019-03-24 10:50:02 -07:00
mdipierro 565415d4bf code simplificatons in newcron (although deprecated), thanks Paolo Pastori 2019-03-24 10:49:35 -07:00
mdipierro 12e043c0a2 removed un-necessary code from shell, thanks Paolo Pastori 2019-03-24 10:48:58 -07:00
mdipierro 1a828bf630 syncing 2019-03-23 22:27:35 -07:00
mdipierro ce2ad2d15b syncing 2019-03-23 22:13:13 -07:00
mdipierro 78ab6de16b Merge pull request #2156 from misl6/master
Fixes virtualfields representation on grid
2019-03-23 22:12:27 -07:00
mdipierro 2e2639b12a Merge pull request #2151 from leonelcamara/patch-30
Teach admin how to deal with syntax errors
2019-03-23 22:11:31 -07:00
mdipierro 83ca7f20b8 no need for Field import, thanks Paolo 2019-03-23 21:53:30 -07:00
mdipierro eb07384c23 moved pluralize logic into sqlhtml for speed reasons, thanks Paolo P. 2019-03-23 21:42:06 -07:00
Mirko Galimberti 5bc1ab1367 Fixes Field.Virtual repr in grid 2019-03-19 12:22:16 +01:00
Mirko 1d81132159 Merge pull request #1 from web2py/master
Merging from master
2019-03-19 12:07:59 +01:00
mdipierro b29cdef7e2 syncing 2019-03-18 08:22:26 -07:00
Leonel Câmara 986406ed80 Teach admin how to deal with syntax errors 2019-03-18 15:06:38 +00:00
mdipierro 396311714c fixed import 2019-03-17 13:44:40 -07:00
mdipierro 8b84026206 syncing 2019-03-17 13:11:44 -07:00
mdipierro c4861879ea moved default_validatos to pydal 2019-03-17 11:00:56 -07:00
mdipierro 4a90c82ee4 lazy initialization of highligher styles, thanks Paolo 2019-03-15 22:32:01 -07:00
mdipierro 4a16a1c377 Fixes #1996, thanks Paolo 2019-03-15 22:21:11 -07:00
mdipierro e276ac497d Merge branch 'master' of github.com:web2py/web2py 2019-03-14 21:01:49 -07:00
mdipierro 7e1e767d8f syncing pydal 2019-03-14 21:00:11 -07:00
mdipierro 378405b6b6 Merge pull request #2147 from leonelcamara/patch-29
import translate and ValidationError as well
2019-03-13 21:14:11 -07:00
Leonel Câmara e821e5c7a6 import translate and ValidationError as well 2019-03-13 18:40:45 +00:00
282 changed files with 2425 additions and 2105 deletions
+23 -2
View File
@@ -1,5 +1,26 @@
## 2.18.1-2.18.4
- pydal 19.02
## 2.19.0
- new command line options (Thanks Paolo Pastori)
OLD NAME NEW NAME
================== ==================
--debug --log_level
--nogui --no_gui
--ssl_private_key --server_key
--ssl_certificate --server_cert
--minthreads --min_threads
--maxthreads --max_threads
--profiler --profiler_dir
--run-cron --with_cron
--softcron --soft_cron
--cron --cron_run
--cronjob * --cron_job *
--test --run_doctests
--add_options
--interface
--crontab
## 2.18.1-2.18.5
- pydal 19.04
- made template its own module (Yet Another Template Language)
- improved python 3.4-3.7 support
- better regular expressions
+3 -3
View File
@@ -19,11 +19,11 @@ clean:
find applications/welcome/ -name '.*' -exec rm -f {} \;
find . -name '*.pyc' -exec rm -f {} \;
tests:
python web2py.py --run_system_tests
python web2py.py --verbose --run_system_tests
coverage:
coverage erase --rcfile=gluon/tests/coverage.ini
export COVERAGE_PROCESS_START=gluon/tests/coverage.ini
python web2py.py --run_system_tests --with_coverage
python web2py.py --verbose --run_system_tests --with_coverage
coverage combine --rcfile=gluon/tests/coverage.ini
sleep 1
coverage html --rcfile=gluon/tests/coverage.ini
@@ -45,7 +45,7 @@ rmfiles:
rm -rf applications/examples/uploads/*
src:
### Use semantic versioning
echo 'Version 2.18.4-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
echo 'Version 2.18.5-stable+timestamp.'`date +%Y.%m.%d.%H.%M.%S` > VERSION
### rm -f all junk files
make clean
# make rmfiles
+1 -1
View File
@@ -1 +1 @@
Version 2.18.4-stable+timestamp.2019.03.12.22.20.22
Version 2.18.5-stable+timestamp.2019.04.07.21.13.59
+22 -13
View File
@@ -166,9 +166,9 @@ def check_version():
new_version, version = check_new_version(request.env.web2py_version,
WEB2PY_VERSION_URL)
if new_version == -1:
if new_version in (-1, -2):
return A(T('Unable to check for upgrades'), _href=WEB2PY_URL)
elif new_version != True:
elif not new_version:
return A(T('web2py is up to date'), _href=WEB2PY_URL)
elif platform.system().lower() in ('windows', 'win32', 'win64') and os.path.exists("web2py.exe"):
return SPAN('You should upgrade to %s' % version.split('(')[0])
@@ -814,8 +814,11 @@ def edit():
if len(request.args) > 2 and request.args[1] == 'controllers':
controller = (request.args[2])[:-3]
functions = find_exposed_functions(data)
functions = functions and sorted(functions) or []
try:
functions = find_exposed_functions(data)
functions = functions and sorted(functions) or []
except SyntaxError as err:
functions = ['SyntaxError:Line:%d' % err.lineno]
else:
(controller, functions) = (None, None)
@@ -1117,7 +1120,7 @@ def design():
defines = {}
for m in models:
data = safe_read(apath('%s/models/%s' % (app, m), r=request))
defines[m] = regex_tables.findall(data)
defines[m] = re.findall(REGEX_DEFINE_TABLE, data, re.MULTILINE)
defines[m].sort()
# Get all controllers
@@ -1127,8 +1130,11 @@ def design():
functions = {}
for c in controllers:
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
items = find_exposed_functions(data)
functions[c] = items and sorted(items) or []
try:
items = find_exposed_functions(data)
functions[c] = items and sorted(items) or []
except SyntaxError as err:
functions[c] = ['SyntaxError:Line:%d' % err.lineno]
# Get all views
views = sorted(
@@ -1138,12 +1144,12 @@ def design():
include = {}
for c in views:
data = safe_read(apath('%s/views/%s' % (app, c), r=request))
items = regex_extend.findall(data)
items = re.findall(REGEX_EXTEND, data, re.MULTILINE)
if items:
extend[c] = items[0][1]
items = regex_include.findall(data)
items = re.findall(REGEX_INCLUDE, data)
include[c] = [i[1] for i in items]
# Get all modules
@@ -1265,8 +1271,11 @@ def plugin():
functions = {}
for c in controllers:
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
items = find_exposed_functions(data)
functions[c] = items and sorted(items) or []
try:
items = find_exposed_functions(data)
functions[c] = items and sorted(items) or []
except SyntaxError as err:
functions[c] = ['SyntaxError:Line:%d' % err.lineno]
# Get all views
views = sorted(
@@ -1276,11 +1285,11 @@ def plugin():
include = {}
for c in views:
data = safe_read(apath('%s/views/%s' % (app, c), r=request))
items = regex_extend.findall(data)
items = re.findall(REGEX_EXTEND, data, re.MULTILINE)
if items:
extend[c] = items[0][1]
items = regex_include.findall(data)
items = re.findall(REGEX_INCLUDE, data)
include[c] = [i[1] for i in items]
# Get all modules
-1
View File
@@ -25,6 +25,5 @@ from gluon.utils import md5_hash
from gluon.fileutils import listdir, cleanpath, up
from gluon.fileutils import tar, tar_compiled, untar, fix_newlines
from gluon.languages import findT, update_all_languages
from gluon.myregex import *
from gluon.restricted import *
from gluon.compileapp import compile_application, remove_compiled_application
View File
View File
View File
View File
View File
View File
View File
View File
View File
+1 -1
View File
@@ -19,4 +19,4 @@ WORKDIR /web2py
EXPOSE 443
CMD python /web2py/web2py.py --nogui --no-banner -a 'a' -c web2py.crt -k web2py.key -i 0.0.0.0 -p 443
CMD python /web2py/web2py.py --no_gui --no_banner -a 'a' -k web2py.key -c web2py.crt -i 0.0.0.0 -p 443
View File
View File
+1 -1
View File
@@ -24,4 +24,4 @@ WORKDIR /home/web2py/web2py
EXPOSE 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --no_gui --no_banner -a 'a' -i 0.0.0.0 -p 8000
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+1 -1
View File
@@ -25,4 +25,4 @@ WORKDIR /home/web2py/web2py
EXPOSE 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --no_gui --no_banner -a 'a' -i 0.0.0.0 -p 8000
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+1 -1
View File
@@ -25,4 +25,4 @@ WORKDIR /home/web2py/web2py
EXPOSE 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --no_gui --no_banner -a 'a' -i 0.0.0.0 -p 8000
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+1 -1
View File
@@ -24,4 +24,4 @@ WORKDIR /home/web2py/web2py
EXPOSE 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --nogui --no-banner -a 'a' -i 0.0.0.0 -p 8000
CMD . /home/web2py/bin/activate && python /home/web2py/web2py/web2py.py --no_gui --no_banner -a 'a' -i 0.0.0.0 -p 8000
View File

Some files were not shown because too many files have changed in this diff Show More