Commit Graph

102 Commits

Author SHA1 Message Date
mdipierro
999e7b7512 fixed layout in lack of configuration 2017-11-14 00:47:40 -06:00
Дим Щ
dd14d1c8c9 Add reload 2017-10-28 19:28:51 +03:00
mdipierro
1800304ade Merge pull request #1763 from abastardi/compiled_views
Fix bug with compiled views in compiled-only apps
2017-09-21 00:22:53 -05:00
abastardi
8eda21ca86 Fix bug with compiled views in compiled-only apps
Compiled views were not being executed in apps containing only compiled
files (i.e., generated via the admin "Pack compiled" functionality),
resulting in "Invalid view" errors for all pages.
2017-09-13 11:48:25 -04:00
Leonel Câmara
2861dc4215 Fixes #1753 2017-09-05 15:46:31 +01:00
ilvalle
9694c66703 Fix view file name in ticket traceback, fix #1740, fix #1676 2017-08-19 10:07:52 +02:00
mdipierro
2c84b88466 Merge pull request #1668 from ilvalle/fix_compile_views
fix performance regression with compiled views
2017-07-10 14:17:04 -05:00
ilvalle
054320820c fix performance regression with compiled views 2017-06-24 07:21:23 +02:00
Richard Vézina
7f5fc798c5 Enhance compileapp.py PEP8 2017-06-21 13:30:02 -04:00
ilvalle
f76437703b fix web debugger, close #1629 2017-05-13 08:26:09 +02:00
Kristján Valur Jónsson
b6e5e16526 Update compileapp.py
The "current" may have been altered by the controller.  This is the case for admin/controllers/shell.py, in callback(), where a new shell environment is created (from gluon/shell)
If this happens, the incorrect "response" is being referenced and the output of the controller is lost.
2017-01-25 20:10:03 +00:00
mdipierro
92ca527426 Merge pull request #1481 from ilvalle/compileapp_refactor
minor compileapp refactor
2016-09-30 17:15:18 -05:00
mdipierro
b19c3419ec do not cache normal views because of dependencies 2016-09-30 13:54:37 -05:00
mdipierro
d03337a737 compile views with . separator anot _ seperator 2016-09-30 11:24:55 -05:00
mdipierro
a1154a6f42 reverted 28db54d0e8 changes to compileapp.py 2016-09-30 09:59:08 -05:00
ilvalle
a31cf09dd3 minor compileapp refactor 2016-09-28 21:49:24 +02:00
ilvalle
b4acfd0724 removed unnecessary env clone for _view_environment 2016-09-25 10:11:47 +02:00
ilvalle
576aaf668d cache (and compile) parse_template in run_view_in, fix #1474 2016-09-25 10:08:26 +02:00
niphlod
e5dcdb074f fixes #1310 and improves upon ideas shared on #1450 2016-09-22 00:01:22 +02:00
ilvalle
352c93bc86 added getcfs for run_view_in 2016-09-16 20:19:38 +02:00
ilvalle
897e2ab95d caching read_pyc for controllers and models 2016-09-16 16:28:20 +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
abf8d9fb27 fix compiled app in py3 2016-06-25 13:27:35 +02:00
ilvalle
8aecaf4514 PY3 fixes and added tests for gluon/admin.py 2016-06-24 22:54:56 +02:00
ilvalle
3270d39596 py3 fixed http.to 2016-06-21 22:24:33 +02:00
ilvalle
2aeb063890 enabled test_appadmin, fix markmin2html, fix main.py 2016-06-15 20:17:58 +02:00
ilvalle
48209f5bdf fix compileapp 2016-06-13 20:20:49 +02:00
ilvalle
71ba0e515f updated portalocker, few py3 syntax/import fix 2016-06-04 14:07:42 +02:00
ilvalle
01bab81432 manually adapt few imports 2016-06-01 20:16:30 +02:00
ilvalle
d74413bc16 running lib2to3.fixes.fix_methodattrs 2016-05-30 18:03:48 +02:00
ilvalle
35900da19b running lib2to3.fixes.fix_except 2016-05-29 08:31:19 +02:00
ilvalle
d22222ebea running lib2to3.fixes.fix_reduce 2016-05-29 08:31:19 +02:00
Chen Rotem Levy
07d764f3c6 issue#1310
undo PR#1194
2016-04-30 13:41:11 +03:00
Chen Levy
d494ec9c88 fix invalid view for purly complied app
When packing a compiled app, and distributing it without the non-compiled view views, run_view_in searches only the old style compiled view file: e.g. views_default_index.html.pyc and not in views.default.index.html.pyc, resulting in "invalid view (default/index.html)" 404 Exception.
2016-02-22 14:13:02 +02:00
mdipierro
b67edb083e fixed compileapp problem in appveyor test (2nd attempt) 2015-12-18 04:44:03 -06:00
mdipierro
4125a97ce1 fixed compileapp problem in appveyor test 2015-12-18 04:39:51 -06:00
mdipierro
22c89d8dcc version 2.13.1 2015-12-17 21:19:08 -06:00
mdipierro
4c039574df skip failed views, thanks Anthony 2015-12-04 12:06:46 -06:00
viniciusban
dcf64a661d Closes #1059: get response.view from the environment 2015-09-03 20:39:37 -03:00
mdipierro
f39db6331a dealing with issue of accidentally redefining request/response, thanks Auden RovelleQuartz 2015-06-29 03:56:22 -05:00
gi0baro
4b337c3e2c Merge branch 'master' into pydal-pip
Conflicts:
	gluon/__init__.py
	gluon/dal/_load.py
	gluon/dal/adapters/base.py
	gluon/dal/adapters/google.py
	gluon/dal/adapters/postgres.py
	gluon/dal/adapters/teradata.py
	gluon/dal/base.py
	gluon/dal/objects.py
	gluon/tests/__init__.py
	gluon/tests/test_dal_nosql.py
2015-01-17 13:32:06 +01:00
mdipierro
5bc5d0496e R-2.9.12 2015-01-17 00:07:10 -06:00
kelson
132dfbcb19 added support for POST variable passing to LOAD function
A new post_vars parameter allows controllers to pass POST varaibles through LOAD as appropriate. GET variables are currently passed by default (via vars).
2015-01-03 14:59:13 -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
5c07c511fa Merge branch 'master' into DAL-modular
* master: (58 commits)
  changed version number
  better types by default, given that we're on 2005 at least
  fix for StorageList and tests added
  improved coverage, fix bug with IS_LIST_OF and items not being strings
  fix cache.increment, added tests
  R-2.9.11
  reverted simplejson
  R-2.9.10
  upgraded memcache and markdown2
  upgraded pypyodbc.py
  upgraded simplejson
  no more split in contains, thanks Niphlod
  fixed wording and bug on contains(), made smart_query use ilike instead of like
  ilike, thanks Niphlod
  CROSS JOIN, thanks jotbe
  added custom represent to GoogleDatastoreAdapter, thanks Alan
  postgresql: identifies what adapter auto-loads json values
  added more tests for json Field
  fixed typo in driver_auto_json
  Improve the graphing to show the name of the application.
  ...

Conflicts:
	gluon/dal.py
	gluon/globals.py
	gluon/tests/test_dal.py
2014-09-25 12:49:16 +02:00
gi0baro
5e5e649c28 Added modular DAL, updated gluon imports to new structure 2014-09-03 12:48:03 +02:00
Jeremie Dokime
52fac63b9e Fix LOAD on action @request.restful()
LOAD didn't work on action decorated with @request.restful() when args and/or vars are passed because the restful method is called with the main "request" object (browser url action) instead of the "other_request" object used by LOAD.
So I have injected the restful method with the good object context.
It's a bit nasty, so if someone knows how to do it better, I'm happy.
2014-09-02 18:16:51 +02:00
mdipierro
7de0861fb5 response.formstyle, reponse.label_separator 2014-08-14 19:10:51 -05:00