##// END OF EJS Templates
middleware: add the register plugin directive further up the config stack
ergo -
r470:d29f1a26 default
parent child Browse files
Show More
@@ -227,6 +227,12 b' def error_handler(exception, request):'
227 def includeme(config):
227 def includeme(config):
228 settings = config.registry.settings
228 settings = config.registry.settings
229
229
230 # plugin information
231 config.registry.rhodecode_plugins = {}
232
233 config.add_directive(
234 'register_rhodecode_plugin', register_rhodecode_plugin)
235
230 if asbool(settings.get('appenlight', 'false')):
236 if asbool(settings.get('appenlight', 'false')):
231 config.include('appenlight_client.ext.pyramid_tween')
237 config.include('appenlight_client.ext.pyramid_tween')
232
238
@@ -249,11 +255,6 b' def includeme(config):'
249 # Set the default renderer for HTML templates to mako.
255 # Set the default renderer for HTML templates to mako.
250 config.add_mako_renderer('.html')
256 config.add_mako_renderer('.html')
251
257
252 # plugin information
253 config.registry.rhodecode_plugins = {}
254
255 config.add_directive(
256 'register_rhodecode_plugin', register_rhodecode_plugin)
257 # include RhodeCode plugins
258 # include RhodeCode plugins
258 includes = aslist(settings.get('rhodecode.includes', []))
259 includes = aslist(settings.get('rhodecode.includes', []))
259 for inc in includes:
260 for inc in includes:
General Comments 0
You need to be logged in to leave comments. Login now