##// END OF EJS Templates
middleware: use explicit call to .includeme while importing apps and modules. This is a bit faster for code discovery and app startup
super-admin -
r5024:cc92b68c default
parent child Browse files
Show More
@@ -235,7 +235,6 b' def error_handler(exception, request):'
235 235 c.causes = base_response.causes
236 236
237 237 c.messages = helpers.flash.pop_messages(request=request)
238
239 238 exc_info = sys.exc_info()
240 239 c.exception_id = id(exc_info)
241 240 c.show_exception_id = isinstance(base_response, VCSServerUnavailable) \
@@ -339,32 +338,36 b' def includeme(config, auth_resources=Non'
339 338
340 339 # apps
341 340 if load_all:
342 config.include('rhodecode.api')
343 config.include('rhodecode.apps._base')
344 config.include('rhodecode.apps.hovercards')
345 config.include('rhodecode.apps.ops')
346 config.include('rhodecode.apps.channelstream')
347 config.include('rhodecode.apps.file_store')
348 config.include('rhodecode.apps.admin')
349 config.include('rhodecode.apps.login')
350 config.include('rhodecode.apps.home')
351 config.include('rhodecode.apps.journal')
341 log.debug('Starting config.include() calls')
342 config.include('rhodecode.api.includeme')
343 config.include('rhodecode.apps._base.includeme')
344 config.include('rhodecode.apps._base.navigation.includeme')
345 config.include('rhodecode.apps._base.subscribers.includeme')
346 config.include('rhodecode.apps.hovercards.includeme')
347 config.include('rhodecode.apps.ops.includeme')
348 config.include('rhodecode.apps.channelstream.includeme')
349 config.include('rhodecode.apps.file_store.includeme')
350 config.include('rhodecode.apps.admin.includeme')
351 config.include('rhodecode.apps.login.includeme')
352 config.include('rhodecode.apps.home.includeme')
353 config.include('rhodecode.apps.journal.includeme')
352 354
353 config.include('rhodecode.apps.repository')
354 config.include('rhodecode.apps.repo_group')
355 config.include('rhodecode.apps.user_group')
356 config.include('rhodecode.apps.search')
357 config.include('rhodecode.apps.user_profile')
358 config.include('rhodecode.apps.user_group_profile')
359 config.include('rhodecode.apps.my_account')
360 config.include('rhodecode.apps.gist')
355 config.include('rhodecode.apps.repository.includeme')
356 config.include('rhodecode.apps.repo_group.includeme')
357 config.include('rhodecode.apps.user_group.includeme')
358 config.include('rhodecode.apps.search.includeme')
359 config.include('rhodecode.apps.user_profile.includeme')
360 config.include('rhodecode.apps.user_group_profile.includeme')
361 config.include('rhodecode.apps.my_account.includeme')
362 config.include('rhodecode.apps.gist.includeme')
361 363
362 config.include('rhodecode.apps.svn_support')
363 config.include('rhodecode.apps.ssh_support')
364 config.include('rhodecode.apps.svn_support.includeme')
365 config.include('rhodecode.apps.ssh_support.includeme')
364 366 config.include('rhodecode.apps.debug_style')
365 367
366 368 if load_all:
367 config.include('rhodecode.integrations')
369 config.include('rhodecode.integrations.includeme')
370 config.include('rhodecode.integrations.routes.includeme')
368 371
369 372 config.add_route('rhodecode_support', 'https://rhodecode.com/help/', static=True)
370 373 settings['default_locale_name'] = settings.get('lang', 'en')
@@ -372,6 +375,7 b' def includeme(config, auth_resources=Non'
372 375
373 376 # Add subscribers.
374 377 if load_all:
378 log.debug('Adding subscribers....')
375 379 config.add_subscriber(scan_repositories_if_enabled,
376 380 pyramid.events.ApplicationCreated)
377 381 config.add_subscriber(write_metadata_if_needed,
@@ -398,6 +402,7 b' def includeme(config, auth_resources=Non'
398 402
399 403 # include RhodeCode plugins
400 404 includes = aslist(settings.get('rhodecode.includes', []))
405 log.debug('processing rhodecode.includes data...')
401 406 for inc in includes:
402 407 config.include(inc)
403 408
General Comments 0
You need to be logged in to leave comments. Login now