##// 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 import rhodecode
28 import rhodecode
29 from rhodecode.model import meta
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 from rhodecode.lib import hooks_base
31 from rhodecode.lib import hooks_base
32 from rhodecode.lib.utils2 import AttributeDict
32 from rhodecode.lib.utils2 import AttributeDict
33
33
@@ -210,8 +210,9 b' class Hooks(object):'
210 def _call_hook(self, hook, extras):
210 def _call_hook(self, hook, extras):
211 extras = AttributeDict(extras)
211 extras = AttributeDict(extras)
212 server_url = extras['server_url']
212 server_url = extras['server_url']
213
213 request = bootstrap_request(application_url=server_url)
214 extras.request = bootstrap_request(application_url=server_url)
214 bootstrap_config(request) # inject routes and other interfaces
215 extras.request = request
215
216
216 try:
217 try:
217 result = hook(extras)
218 result = hook(extras)
General Comments 0
You need to be logged in to leave comments. Login now