~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/profile/profile.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-16 20:38:35 UTC
  • mfrom: (13686.2.17 useoops)
  • Revision ID: launchpad@pqm.canonical.com-20110816203835-4q78rt0xz6zzuyka
[r=gmb][no-qa] More oops extraction. New deps oops-0.0.5
 oops-datedir-repo-0.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
from bzrlib import errors
22
22
from bzrlib import lsprof
23
 
import oops.serializer_rfc822
 
23
import oops_datedir_repo.serializer_rfc822
24
24
from zope.pagetemplate.pagetemplatefile import PageTemplateFile
25
25
from zope.app.publication.interfaces import IEndRequestEvent
26
26
from zope.component import (
303
303
            # information.
304
304
            info = (ProfilingOops, None, None)
305
305
            error_utility = getUtility(IErrorReportingUtility)
306
 
            oops_report = error_utility.handling(info, request)
 
306
            oops_report = error_utility.raising(info, request)
307
307
            oopsid = oops_report['id']
308
308
        else:
309
309
            oops_report = request.oops
328
328
            # Generate rfc822 OOPS result (might be nice to have an html
329
329
            # serializer..).
330
330
            template_context['oops'] = ''.join(
331
 
                    oops.serializer_rfc822.to_chunks(oops_report))
 
331
                oops_datedir_repo.serializer_rfc822.to_chunks(oops_report))
332
332
            # Generate profile summaries.
333
333
            prof_stats.strip_dirs()
334
334
            for name in ('time', 'cumulative', 'calls'):