clarify name of request_path_to_instance_resource_path

This commit is contained in:
2021-02-20 17:53:32 -06:00
parent 6026c51490
commit 1c40f45ffd
2 changed files with 26 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ bp = Blueprint('pages', __name__, url_prefix='/')
def display_page(path):
"""Get the file contents of the requested path and render the file."""
try:
resolved_path = request_path_to_instance_resource(path)
resolved_path = request_path_to_instance_resource_path(path)
logger.debug("received request for path '%s', resolved to '%s'", path, resolved_path)
except PermissionError:
abort(400)
@@ -71,7 +71,7 @@ def render(template_name_or_list, **context):
return resp
def request_path_to_instance_resource(path):
def request_path_to_instance_resource_path(path):
"""Turn a request URL path to the full page path.
flask.Flask.open_instance_resource will open a file like /etc/hosts if you tell it to,