Show More
@@ -235,7 +235,6 b' def error_handler(exception, request):' | |||||
235 | c.causes = base_response.causes |
|
235 | c.causes = base_response.causes | |
236 |
|
236 | |||
237 | c.messages = helpers.flash.pop_messages(request=request) |
|
237 | c.messages = helpers.flash.pop_messages(request=request) | |
238 |
|
||||
239 | exc_info = sys.exc_info() |
|
238 | exc_info = sys.exc_info() | |
240 | c.exception_id = id(exc_info) |
|
239 | c.exception_id = id(exc_info) | |
241 | c.show_exception_id = isinstance(base_response, VCSServerUnavailable) \ |
|
240 | c.show_exception_id = isinstance(base_response, VCSServerUnavailable) \ | |
@@ -339,32 +338,36 b' def includeme(config, auth_resources=Non' | |||||
339 |
|
338 | |||
340 | # apps |
|
339 | # apps | |
341 | if load_all: |
|
340 | if load_all: | |
342 | config.include('rhodecode.api') |
|
341 | log.debug('Starting config.include() calls') | |
343 |
config.include('rhodecode.ap |
|
342 | config.include('rhodecode.api.includeme') | |
344 |
config.include('rhodecode.apps. |
|
343 | config.include('rhodecode.apps._base.includeme') | |
345 |
config.include('rhodecode.apps. |
|
344 | config.include('rhodecode.apps._base.navigation.includeme') | |
346 |
config.include('rhodecode.apps. |
|
345 | config.include('rhodecode.apps._base.subscribers.includeme') | |
347 |
config.include('rhodecode.apps. |
|
346 | config.include('rhodecode.apps.hovercards.includeme') | |
348 |
config.include('rhodecode.apps. |
|
347 | config.include('rhodecode.apps.ops.includeme') | |
349 |
config.include('rhodecode.apps. |
|
348 | config.include('rhodecode.apps.channelstream.includeme') | |
350 |
config.include('rhodecode.apps. |
|
349 | config.include('rhodecode.apps.file_store.includeme') | |
351 |
config.include('rhodecode.apps. |
|
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') |
|
355 | config.include('rhodecode.apps.repository.includeme') | |
354 | config.include('rhodecode.apps.repo_group') |
|
356 | config.include('rhodecode.apps.repo_group.includeme') | |
355 | config.include('rhodecode.apps.user_group') |
|
357 | config.include('rhodecode.apps.user_group.includeme') | |
356 | config.include('rhodecode.apps.search') |
|
358 | config.include('rhodecode.apps.search.includeme') | |
357 | config.include('rhodecode.apps.user_profile') |
|
359 | config.include('rhodecode.apps.user_profile.includeme') | |
358 | config.include('rhodecode.apps.user_group_profile') |
|
360 | config.include('rhodecode.apps.user_group_profile.includeme') | |
359 | config.include('rhodecode.apps.my_account') |
|
361 | config.include('rhodecode.apps.my_account.includeme') | |
360 | config.include('rhodecode.apps.gist') |
|
362 | config.include('rhodecode.apps.gist.includeme') | |
361 |
|
363 | |||
362 | config.include('rhodecode.apps.svn_support') |
|
364 | config.include('rhodecode.apps.svn_support.includeme') | |
363 | config.include('rhodecode.apps.ssh_support') |
|
365 | config.include('rhodecode.apps.ssh_support.includeme') | |
364 | config.include('rhodecode.apps.debug_style') |
|
366 | config.include('rhodecode.apps.debug_style') | |
365 |
|
367 | |||
366 | if load_all: |
|
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 | config.add_route('rhodecode_support', 'https://rhodecode.com/help/', static=True) |
|
372 | config.add_route('rhodecode_support', 'https://rhodecode.com/help/', static=True) | |
370 | settings['default_locale_name'] = settings.get('lang', 'en') |
|
373 | settings['default_locale_name'] = settings.get('lang', 'en') | |
@@ -372,6 +375,7 b' def includeme(config, auth_resources=Non' | |||||
372 |
|
375 | |||
373 | # Add subscribers. |
|
376 | # Add subscribers. | |
374 | if load_all: |
|
377 | if load_all: | |
|
378 | log.debug('Adding subscribers....') | |||
375 | config.add_subscriber(scan_repositories_if_enabled, |
|
379 | config.add_subscriber(scan_repositories_if_enabled, | |
376 | pyramid.events.ApplicationCreated) |
|
380 | pyramid.events.ApplicationCreated) | |
377 | config.add_subscriber(write_metadata_if_needed, |
|
381 | config.add_subscriber(write_metadata_if_needed, | |
@@ -398,6 +402,7 b' def includeme(config, auth_resources=Non' | |||||
398 |
|
402 | |||
399 | # include RhodeCode plugins |
|
403 | # include RhodeCode plugins | |
400 | includes = aslist(settings.get('rhodecode.includes', [])) |
|
404 | includes = aslist(settings.get('rhodecode.includes', [])) | |
|
405 | log.debug('processing rhodecode.includes data...') | |||
401 | for inc in includes: |
|
406 | for inc in includes: | |
402 | config.include(inc) |
|
407 | config.include(inc) | |
403 |
|
408 |
General Comments 0
You need to be logged in to leave comments.
Login now