# HG changeset patch # User Marcin Kuzminski # Date 2017-11-09 18:02:38 # Node ID 86017d7344d08522214f1caafce25739e66fd5f0 # Parent 0804fe0ea9c9312f9c6c0c3da3dfa5083a1337b8 events: fixed routing problems with new bootstrap_request logic. diff --git a/rhodecode/lib/hooks_daemon.py b/rhodecode/lib/hooks_daemon.py --- 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)