@@ -20,7 +20,7 @@ that accepts POSTs.
20
20
and <a href =" /flask-app-immutabledict-examples.html " >ImmutableDict</a >
21
21
are several other callables with code examples from the same ` flask.app ` package.
22
22
23
- You should read up on these subjects along with these ` BadRequest ` examples:
23
+ These subjects go along with the ` BadRequest ` code examples:
24
24
25
25
* [ web development] ( /web-development.html ) and [ web design] ( /web-design.html )
26
26
* [ Flask] ( /flask.html ) and [ web framework] ( /web-frameworks.html ) concepts
@@ -90,7 +90,6 @@ from ..const import (
90
90
# # ... source file abbreviated to get to BadRequest examples ...
91
91
92
92
93
- API_SELECT_COLUMNS_RIS_KEY ,
94
93
API_SHOW_COLUMNS_RES_KEY ,
95
94
API_SHOW_COLUMNS_RIS_KEY ,
96
95
API_SHOW_TITLE_RES_KEY ,
@@ -99,6 +98,7 @@ from ..const import (
99
98
PERMISSION_PREFIX ,
100
99
)
101
100
from ..exceptions import FABException, InvalidOrderByColumnFABException
101
+ from ..hooks import get_before_request_hooks, wrap_route_handler_with_hooks
102
102
from ..security.decorators import permission_name, protect
103
103
104
104
log = logging.getLogger(__name__ )
@@ -274,11 +274,11 @@ def get_error_description(exception):
274
274
except AttributeError :
275
275
return str (exception)
276
276
if isinstance (exception, Forbidden) and description == Forbidden.description:
277
- return _(" You are not allowed to access this page." )
277
+ return _(' You are not allowed to access this page.' )
278
278
elif isinstance (exception, NotFound) and description == NotFound.description:
279
279
return _(" The page you are looking for doesn't exist." )
280
280
~~ elif isinstance (exception, BadRequest) and description == BadRequest.description:
281
- return _(" The request was invalid or contained invalid arguments." )
281
+ return _(' The request was invalid or contained invalid arguments.' )
282
282
else :
283
283
return str (description)
284
284
0 commit comments