aboutsummaryrefslogtreecommitdiffstats
path: root/paste/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'paste/__init__.py')
-rw-r--r--paste/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/__init__.py b/paste/__init__.py
index 0f75587..099474a 100644
--- a/paste/__init__.py
+++ b/paste/__init__.py
@@ -151,7 +151,7 @@ def options(app: App, environ: Env, start_response: StartResponse) -> Response:
@middleware
-def open_database(app: App, environ: Env, start_response: StartResponse) -> Response:
+def open_store(app: App, environ: Env, start_response: StartResponse) -> Response:
db_path = environ.get("PASTE_DB", DB_PATH)
with store.open(db_path) as stor:
environ["paste.store"] = stor
@@ -186,7 +186,7 @@ def authenticate(app: App, environ: Env, start_response: StartResponse) -> Respo
@validate_method
@options
@if_none_match
-@open_database
+@open_store
@authenticate
def application(environ: Env, start_response: StartResponse) -> Response:
stor = environ["paste.store"]