Browse Source

update web2py to v2.16.1 (#3169)

* web2py checkout v2.16.1, updated dep

* Fix web2py build due to web2py/web2py#1485
ilvalle 7 years ago
parent
commit
0b404acd1c

+ 1 - 1
frameworks/Python/web2py/app/optimized/models/app.py

@@ -4,6 +4,6 @@ from gluon import current
 from applications.standard.modules import controller
 
 current.optimized = True # Flag used in controller.py to trigger DAL optimizations.
-
+current.response._view_environment = current.globalenv
 # To avoid the overhead of executing a controller, the response is returned here.
 raise HTTP(200, getattr(controller, request.function)(), **current.response.headers)

+ 1 - 1
frameworks/Python/web2py/app/routes.py

@@ -3,5 +3,5 @@
 routes_in = [
     ('/standard/$anything', '/standard/default/index/$anything'),
     # Disable sessions on the /optimized route for additional speed-up.
-    ('/optimized/$anything', '/optimized/default/$anything', dict(web2py_disable_session=True))
+    ('/optimized/$anything', '/optimized/default/$anything', dict(web2py_disable_session=True, web2py_disable_garbage_collect=True))
 ]

+ 3 - 3
frameworks/Python/web2py/requirements.txt

@@ -1,4 +1,4 @@
-mysqlclient==1.3.7
-gunicorn==19.4.5
+mysqlclient==1.3.12
+gunicorn==19.7.1
 meinheld==0.6.1
-greenlet==0.4.9
+greenlet==0.4.12

+ 1 - 1
frameworks/Python/web2py/setup.sh

@@ -10,7 +10,7 @@ cd web2py
 # The following commit is checked out in order to take advantage of several
 # bug fixes that were made after the latest stable release. This can be changed
 # in future rounds once a new stable release has been made.
-git checkout 44362aa42948dca08ddf1b2f86ac03c69b0d48e4
+git checkout 623f3b99477eb97ffadb20d6f7cb3da398253c9c
 cd ..
 cp -r app/standard/ web2py/applications/
 cp -r app/optimized/ web2py/applications/