{"action":"created","issue":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/1875","labels_url":"https://api.github.com/repos/Pylons/pyramid/issues/1875/labels{/name}","comments_url":"https://api.github.com/repos/Pylons/pyramid/issues/1875/comments","events_url":"https://api.github.com/repos/Pylons/pyramid/issues/1875/events","html_url":"https://github.com/Pylons/pyramid/issues/1875","id":102633357,"number":1875,"title":"Provide a hook between route lookup and traversal","user":{"login":"dstufft","id":145979,"avatar_url":"https://avatars.githubusercontent.com/u/145979?v=3","gravatar_id":"","url":"https://api.github.com/users/dstufft","html_url":"https://github.com/dstufft","followers_url":"https://api.github.com/users/dstufft/followers","following_url":"https://api.github.com/users/dstufft/following{/other_user}","gists_url":"https://api.github.com/users/dstufft/gists{/gist_id}","starred_url":"https://api.github.com/users/dstufft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstufft/subscriptions","organizations_url":"https://api.github.com/users/dstufft/orgs","repos_url":"https://api.github.com/users/dstufft/repos","events_url":"https://api.github.com/users/dstufft/events{/privacy}","received_events_url":"https://api.github.com/users/dstufft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-23T15:50:48Z","updated_at":"2015-08-23T21:46:25Z","closed_at":null,"body":"Right now immediately after the route has been found the ``Router`` starts to do traversal. I would like to have a hook in between these events that would let me modify the request based on which route was select. My use case here is that I want to be able to select different transaction isolation levels on different routes, however you can only change the transaction isolation level on a database transaction before you've made any other queries, so if traversal (or the security framework) triggers any database queries then it's too late to change the level.\r\n\r\nI'm not sure if a ``RouteFound`` event would let me modify the request or not, but I assume it would, would a PR like that be acceptable?"},"comment":{"url":"https://api.github.com/repos/Pylons/pyramid/issues/comments/133942162","html_url":"https://github.com/Pylons/pyramid/issues/1875#issuecomment-133942162","issue_url":"https://api.github.com/repos/Pylons/pyramid/issues/1875","id":133942162,"user":{"login":"dstufft","id":145979,"avatar_url":"https://avatars.githubusercontent.com/u/145979?v=3","gravatar_id":"","url":"https://api.github.com/users/dstufft","html_url":"https://github.com/dstufft","followers_url":"https://api.github.com/users/dstufft/followers","following_url":"https://api.github.com/users/dstufft/following{/other_user}","gists_url":"https://api.github.com/users/dstufft/gists{/gist_id}","starred_url":"https://api.github.com/users/dstufft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstufft/subscriptions","organizations_url":"https://api.github.com/users/dstufft/orgs","repos_url":"https://api.github.com/users/dstufft/repos","events_url":"https://api.github.com/users/dstufft/events{/privacy}","received_events_url":"https://api.github.com/users/dstufft/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T21:46:25Z","updated_at":"2015-08-23T21:46:25Z","body":"I am using a Context and that is pulling from the database so ``ContextFound`` is too late."}}