From 50b17eb2cfa0ec9e47d841046a4fe40bbcc60ddf Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Thu, 9 Nov 2017 19:02:38 +0100 Subject: [PATCH] events: fixed routing problems with new bootstrap_request logic. --- rhodecode/lib/hooks_daemon.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rhodecode/lib/hooks_daemon.py b/rhodecode/lib/hooks_daemon.py index af3e82ed..27b64d04 100644 --- a/rhodecode/lib/hooks_daemon.py +++ b/rhodecode/lib/hooks_daemon.py @@ -27,7 +27,7 @@ from SocketServer import TCPServer import rhodecode from rhodecode.model import meta -from rhodecode.lib.base import bootstrap_request +from rhodecode.lib.base import bootstrap_request, bootstrap_config from rhodecode.lib import hooks_base from rhodecode.lib.utils2 import AttributeDict @@ -210,8 +210,9 @@ class Hooks(object): def _call_hook(self, hook, extras): extras = AttributeDict(extras) server_url = extras['server_url'] - - extras.request = bootstrap_request(application_url=server_url) + request = bootstrap_request(application_url=server_url) + bootstrap_config(request) # inject routes and other interfaces + extras.request = request try: result = hook(extras)