clarify name of request_path_to_instance_resource_path
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user