~joetalbott/qa-dashboard/fix_for_15.04

« back to all changes in this revision

Viewing changes to common/utils.py

  • Committer: Tarmac
  • Author(s): Joe Talbott, Joe Talbot
  • Date: 2014-10-28 19:56:01 UTC
  • mfrom: (756.2.17 charm_support)
  • Revision ID: tarmac-20141028195601-yyfx9gt3kq008idd
[r=PS Jenkins bot, Evan Dandrea] Add support needed for the soon to be released CI Dashboard Charm.  from Joe Talbott

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
 
205
205
def wrap_in_oops_wsgi(wsgi_handler):
206
206
    import oops_dictconfig
207
 
    from qa_dashboard.settings import oops_config
 
207
    from qa_dashboard.settings import OOPSES
208
208
    from oops_wsgi import install_hooks, make_app
209
 
    cfg = oops_dictconfig.config_from_dict(oops_config)
 
209
    cfg = oops_dictconfig.config_from_dict(OOPSES)
210
210
    cfg.template['reporter'] = 'ci-dashboard'
211
211
    install_hooks(cfg)
212
212
    return make_app(wsgi_handler, cfg, oops_on_status=['500'])