70 Commits

Author SHA1 Message Date
81a052f94a Merge remote-tracking branch 'remotes/oficial/master' into patch-2 2019-12-18 16:13:59 +00:00
179edb659a Load all models when using --force_migrate (same behaviour as appadmin). 2019-08-13 18:04:30 +01:00
b4c2ee8304 Allow easily switching fake_migrate on to allow easier fixes of the database migrations 2019-07-25 17:15:19 +01:00
Dinis
3741fe4c66 initialize env with abspath
When running scripts, the path used is relative to the web2py root instead of the full path. This causes differences in migrations when using InDBMigrator - this causes pydal to try to repeat migrations already done.
2019-07-25 17:03:01 +01:00
mdipierro
f2e95d1bb6 no need to create folders in shell 2019-06-01 11:31:27 -07:00
mdipierro
22f95677d9 Merge pull request #2208 from dlage/fix-missing-folders-in-script
Refactor methods from gluon/admin to gluon/fileutils
2019-05-25 00:20:52 -07:00
mdipierro
4fd44ff682 Merge pull request #2207 from dlage/migrator-pr
Migrator - add a command line option to ensure that all tables are migrated
2019-05-25 00:20:21 -07:00
30a0ac6a1b Refactor methods from gluon/admin to gluon/fileutils 2019-05-16 18:51:26 +01:00
b365d12a2e Merge branch 'master' into migrator-pr 2019-05-16 16:49:15 +01:00
4455fa48c4 Add a script to force migration of lazy tables and fix missing options in DAL init. 2019-05-16 15:33:19 +01:00
96534ccf30 First attempt to force migration of the tables even with migrate option set to false. 2019-05-15 20:07:36 +01:00
Bernhard Miklautz
7a225da44e fix: controller function invocation via shell
If only a compiled version is available and a controller function is invoked with -S app/c/f an
IOError is raised as '_' is used as delimiter instead of '.'.

web2py.py  -S test/test/test -M would lead to:

IOError: [Errno 2] No such file or directory: 'applications/test/compiled/controllers_test_test.pyc'
2019-05-11 17:33:42 +02:00
mdipierro
42528987af regex fix, thanks Paolo 2019-05-04 10:20:44 -07:00
mdipierro
1c08c07a0f new command line options 2019-05-01 21:07:52 -07:00
mdipierro
14dee6b466 better shell using create_app, thanks Paolo 2019-04-21 09:27:02 -07:00
mdipierro
8a9b2d687e better option handling for the shell, thanks Paolo 2019-04-19 21:23:59 -07:00
mdipierro
b96c54cef9 some cleanup and better use of die() function, thanks paolo 2019-04-09 21:49:04 -07:00
mdipierro
12e043c0a2 removed un-necessary code from shell, thanks Paolo Pastori 2019-03-24 10:48:58 -07:00
mdipierro
f06c60b963 space cleanup 2019-02-17 17:20:38 -08:00
Vinyl Darkscratch
f434ebec8a Update Python 3 compatibility 2019-02-09 00:01:11 -08:00
Faelysse
08f04814ba Open shell executed files in binary mode, fixes #2060
Non-ASCII characters in executed files caused a crash, this fixes such
behaviour.
2018-12-03 16:14:05 +01:00
mdipierro
13ff0877fd fixes #1596, thanks Paolo Pastori 2018-05-01 10:51:42 -05:00
mdipierro
2f0f3075b0 allow web2py.py -S c/a/f?x=y 2018-04-24 17:40:47 -05:00
maxcrystal
e02d5e2a60 PY3 fix 2018-02-07 23:46:44 +03:00
Leonel Câmara
f22e3a7624 execfile shim for python 3 compatibility
Fixes #1739
2017-08-16 16:35:46 +01:00
niphlod
87489f3363 fixes #1491 2016-10-07 22:43:06 +02:00
niphlod
b9c1b4d62b fixes #1485, thanks @abastardi once again 2016-10-04 00:40:29 +02:00
Giovanni Barillari
0528a347b3 Updated pyDAL to 16.08 2016-08-13 15:38:55 +02:00
mdipierro
35eaba1096 removed duplicated code, using pydal's _compat.py 2016-08-01 03:39:22 -05:00
ilvalle
1f013d76f3 minor few fix 2016-06-10 14:14:40 +02:00
ilvalle
db8306b5c4 fix iteritems, enabled test_cache & test_dal for 3.5 2016-06-02 17:21:36 +02:00
ilvalle
01bab81432 manually adapt few imports 2016-06-01 20:16:30 +02:00
ilvalle
48e10a3793 running libfuturize.fixes.fix_print_with_import 2016-05-30 21:23:40 +02:00
ilvalle
35900da19b running lib2to3.fixes.fix_except 2016-05-29 08:31:19 +02:00
niphlod
de399691ce fixes #1039
It was a REEEAALLY good catch :-)
2015-09-21 22:09:17 +02:00
ailnlv
169818b275 Fixing https://github.com/web2py/web2py/issues/969
Running readline.parse_and_bind("bind ^I rl_complete") makes the letter "b" stop working on the console. This patch solves the issue and correctly enables tab completition on OSX.
2015-05-13 19:23:56 -03:00
Hardirc
86880ea080 Improve PEP8 gluon/shell.py 2015-03-06 22:25:03 -05:00
gi0baro
f60c1dff93 Fixing imports for new pydal 2014-12-15 22:24:04 +01:00
gi0baro
dcadcf0ffb Added pyDAL from repository, adapted web2py code 2014-12-15 20:13:40 +01:00
gi0baro
5e5e649c28 Added modular DAL, updated gluon imports to new structure 2014-09-03 12:48:03 +02:00
niphlod
3597833bac sphinx-compatible docstrings (7 modules remaining...) 2014-03-23 21:46:25 +01:00
mdipierro
64b670fd8f fixed issue with scheduler and cache.disk introduced in 2.8.1 2013-11-28 07:50:55 -06:00
mdipierro
975bc64fd0 fixed 1760:option -p or --port not working at command line 2013-11-01 17:45:43 -05:00
Michele Comitini
1451997172 use appropriate module for IPython 1.0.0 2013-10-12 21:52:30 +02:00
Rick Ree
46e2a663e9 fix for using the shell with IPython >= 1.0 2013-10-06 17:18:04 -05:00
mdipierro
6c1cc6fc96 tabs -> spaces 2013-09-13 15:39:39 -05:00
mdipierro
ed9def985e R-2.6.1 2013-09-12 17:08:52 -05:00
mdipierro
8fbab4d505 fixed run(...cronjob), my fault, thanks Jonathan 2013-08-09 16:08:42 -05:00
mdipierro
856b6d658e allow passing args and vars to shell, thanks Jonathan 2013-08-07 18:03:36 -05:00
mdipierro
b0e9140508 web3py backport of lazy get_vars,post_vars and vars, thanks Niphlod (may need more testing) 2013-08-06 06:46:07 -05:00