From e8892faed21792768753f48d8753186020ec9748 Mon Sep 17 00:00:00 2001 From: Josh Thurston <36908151+josh-thurston@users.noreply.github.com> Date: Mon, 27 Dec 2021 12:37:39 -0600 Subject: [PATCH] update view_modifiers Based on email Michael sent me June 2020. Had to change the response function. --- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- app/ch12-forms/final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- app/ch15_deploy/final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- .../final/pypi_org/infrastructure/view_modifiers.py | 2 +- .../starter/pypi_org/infrastructure/view_modifiers.py | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/app/ch05_jinja_templates/final/pypi_org/infrastructure/view_modifiers.py b/app/ch05_jinja_templates/final/pypi_org/infrastructure/view_modifiers.py index 0c0941eb..53a0e36d 100644 --- a/app/ch05_jinja_templates/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch05_jinja_templates/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch06_routing/final/pypi_org/infrastructure/view_modifiers.py b/app/ch06_routing/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch06_routing/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch06_routing/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch06_routing/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch06_routing/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch06_routing/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch06_routing/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch08_adding_our_design/final/pypi_org/infrastructure/view_modifiers.py b/app/ch08_adding_our_design/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch08_adding_our_design/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch08_adding_our_design/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch08_adding_our_design/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch08_adding_our_design/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch08_adding_our_design/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch08_adding_our_design/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch09_sqlalchemy/final/pypi_org/infrastructure/view_modifiers.py b/app/ch09_sqlalchemy/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch09_sqlalchemy/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch09_sqlalchemy/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch09_sqlalchemy/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch09_sqlalchemy/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch09_sqlalchemy/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch09_sqlalchemy/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch10_using_sqlachemy/final/pypi_org/infrastructure/view_modifiers.py b/app/ch10_using_sqlachemy/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch10_using_sqlachemy/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch10_using_sqlachemy/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch10_using_sqlachemy/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch10_using_sqlachemy/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch10_using_sqlachemy/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch10_using_sqlachemy/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch11_migrations/final/pypi_org/infrastructure/view_modifiers.py b/app/ch11_migrations/final/pypi_org/infrastructure/view_modifiers.py index 0c0941eb..53a0e36d 100644 --- a/app/ch11_migrations/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch11_migrations/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch11_migrations/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch11_migrations/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch11_migrations/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch11_migrations/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch12-forms/final/pypi_org/infrastructure/view_modifiers.py b/app/ch12-forms/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch12-forms/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch12-forms/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch12-forms/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch12-forms/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch12-forms/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch12-forms/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch13-validation/final/pypi_org/infrastructure/view_modifiers.py b/app/ch13-validation/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch13-validation/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch13-validation/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch13-validation/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch13-validation/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch13-validation/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch13-validation/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch14_testing/final/pypi_org/infrastructure/view_modifiers.py b/app/ch14_testing/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch14_testing/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch14_testing/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch14_testing/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch14_testing/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch14_testing/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch14_testing/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch15_deploy/final/pypi_org/infrastructure/view_modifiers.py b/app/ch15_deploy/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch15_deploy/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch15_deploy/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch15_deploy/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch15_deploy/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch15_deploy/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch15_deploy/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch16_mongodb/final/pypi_org/infrastructure/view_modifiers.py b/app/ch16_mongodb/final/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch16_mongodb/final/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch16_mongodb/final/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True) diff --git a/app/ch16_mongodb/starter/pypi_org/infrastructure/view_modifiers.py b/app/ch16_mongodb/starter/pypi_org/infrastructure/view_modifiers.py index 0978163e..c6c92d04 100644 --- a/app/ch16_mongodb/starter/pypi_org/infrastructure/view_modifiers.py +++ b/app/ch16_mongodb/starter/pypi_org/infrastructure/view_modifiers.py @@ -5,7 +5,7 @@ import werkzeug.wrappers -def response(*, mimetype: str = None, template_file: str = None): +def response(*, mimetype: object = None, template_file: object = None) -> callable: def response_inner(f): # print("Wrapping in response {}".format(f.__name__), flush=True)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: