Permalink
Browse files

Upgrade to Flask 0.11.1

Flask 0.11.1 crashes when using the obsolete app.error_handler_spec() method.
Using app_register_error_handler() instead.

See pallets/flask#1837 for details.

Closes #904.
Closes #945.
  • Loading branch information...
1 parent d7d2d5a commit 73fbd1b6f8b87ca2cfb13c86a4911622d9ea900e @nicolaiarocci committed Dec 8, 2016
Showing with 14 additions and 8 deletions.
  1. +1 −0 CHANGES
  2. +6 −1 eve/flaskapp.py
  3. +3 −3 requirements.txt
  4. +4 −4 setup.py
View
@@ -107,6 +107,7 @@ Version 0.7
Version 0.6.5
~~~~~~~~~~~~~
+- Flask 0.11.1 is now supported. Closes #945 and #904.
- Fix: Deprecation warning from Flask. Closes #898 (George Lestaris).
- Fix: add Support serialization on lists using anyof, oneof, allof, noneof.
Closes #876 (Carles Bruguera).
View
@@ -918,10 +918,15 @@ def register_error_handlers(self):
""" Register custom error handlers so we make sure that all errors
return a parseable body.
+ .. versionchanged: 0.6.5
+ Replace obsolete app.register_error_handler_spec() with
+ register_error_handler(), which works with Flask>=0.11.1. Closes
+ #904, #945.
+
.. versionadded:: 0.4
"""
for code in self.config['STANDARD_ERRORS']:
- self.error_handler_spec[None][code] = error_endpoint
+ self.register_error_handler(code, error_endpoint)
def _init_oplog(self):
""" If enabled, configures the OPLOG endpoint.
View
@@ -1,10 +1,10 @@
Cerberus==0.9.2
Events==0.2.1
Flask-PyMongo==0.4.1
-Flask==0.10.1
+Flask==0.11.1
itsdangerous==0.24
-Jinja2==2.7.3
+Jinja2==2.8
MarkupSafe==0.23
pymongo==3.2.1
simplejson==3.8.2
-Werkzeug==0.11.4
+Werkzeug==0.11.11
View
@@ -9,11 +9,11 @@
'cerberus>=0.9.2,<0.10',
'events>=0.2.1,<0.3',
'simplejson>=3.3.0,<4.0',
- 'werkzeug>=0.9.4,<0.11.4',
+ 'werkzeug>=0.9.4,<0.11.11',
'markupsafe>=0.23,<1.0',
- 'jinja2>=2.7.2,<3.0',
- 'itsdangerous>=0.22,<1.0',
- 'flask>=0.10.1,<0.11',
+ 'jinja2>=2.8,<3.0',
+ 'itsdangerous>=0.24,<1.0',
+ 'flask>=0.10.1,<=0.11.1',
'pymongo>=3.2',
'flask-pymongo>=0.4',
]

0 comments on commit 73fbd1b

Please sign in to comment.