##// END OF EJS Templates
events: fixed routing problems with new bootstrap_request logic.
marcink -
r2335:86017d73 default
parent child Browse files
Show More
@@ -27,7 +27,7 b' from SocketServer import TCPServer'
27 27
28 28 import rhodecode
29 29 from rhodecode.model import meta
30 from rhodecode.lib.base import bootstrap_request
30 from rhodecode.lib.base import bootstrap_request, bootstrap_config
31 31 from rhodecode.lib import hooks_base
32 32 from rhodecode.lib.utils2 import AttributeDict
33 33
@@ -210,8 +210,9 b' class Hooks(object):'
210 210 def _call_hook(self, hook, extras):
211 211 extras = AttributeDict(extras)
212 212 server_url = extras['server_url']
213
214 extras.request = bootstrap_request(application_url=server_url)
213 request = bootstrap_request(application_url=server_url)
214 bootstrap_config(request) # inject routes and other interfaces
215 extras.request = request
215 216
216 217 try:
217 218 result = hook(extras)
General Comments 0
You need to be logged in to leave comments. Login now