From c9ea7697f2c4f9ea1a8eb874fc973307afe24b50 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Fri, 22 Mar 2024 17:53:05 -0400 Subject: [PATCH] fix back-reference of dynamically created route for service by pyramidhook --- src/cornice/pyramidhook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cornice/pyramidhook.py b/src/cornice/pyramidhook.py index 7ef351c4..86c3c881 100644 --- a/src/cornice/pyramidhook.py +++ b/src/cornice/pyramidhook.py @@ -181,6 +181,7 @@ def register_service_views(config, service): services["__cornice" + existing_route] = service else: services[prefix + service.path] = service + service.pyramid_route = route_name # before doing anything else, register a view for the OPTIONS method # if we need to