@@ -20,7 +20,7 @@ that accepts POSTs.
2020and <a href =" /flask-app-immutabledict-examples.html " >ImmutableDict</a >
2121are several other callables with code examples from the same ` flask.app ` package.
2222
23- You should read up on these subjects along with these ` BadRequest ` examples:
23+ These subjects go along with the ` BadRequest ` code examples:
2424
2525* [ web development] ( /web-development.html ) and [ web design] ( /web-design.html )
2626* [ Flask] ( /flask.html ) and [ web framework] ( /web-frameworks.html ) concepts
@@ -90,7 +90,6 @@ from ..const import (
9090# # ... source file abbreviated to get to BadRequest examples ...
9191
9292
93- API_SELECT_COLUMNS_RIS_KEY ,
9493 API_SHOW_COLUMNS_RES_KEY ,
9594 API_SHOW_COLUMNS_RIS_KEY ,
9695 API_SHOW_TITLE_RES_KEY ,
@@ -99,6 +98,7 @@ from ..const import (
9998 PERMISSION_PREFIX ,
10099)
101100from ..exceptions import FABException, InvalidOrderByColumnFABException
101+ from ..hooks import get_before_request_hooks, wrap_route_handler_with_hooks
102102from ..security.decorators import permission_name, protect
103103
104104log = logging.getLogger(__name__ )
@@ -274,11 +274,11 @@ def get_error_description(exception):
274274 except AttributeError :
275275 return str (exception)
276276 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.' )
278278 elif isinstance (exception, NotFound) and description == NotFound.description:
279279 return _(" The page you are looking for doesn't exist." )
280280~~ 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.' )
282282 else :
283283 return str (description)
284284
0 commit comments