~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/views.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-23 16:26:26 UTC
  • mfrom: (13099.1.14 answers-api-4)
  • Revision ID: launchpad@pqm.canonical.com-20110523162626-m06mv9uf94d7prkm
[r=henninge][bug=786297] Consolidate and export question errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
from canonical.config import config
25
25
from canonical.launchpad.layers import setFirstLayer
 
26
from canonical.launchpad.webapp.servers import WebServiceTestRequest
26
27
from canonical.launchpad.webapp.interfaces import (
27
28
    ICanonicalUrlData,
28
29
    IPlacelessAuthUtility,
106
107
 
107
108
    folder = os.path.join(config.root, 'lib/')
108
109
    export_subdirectories = True
 
110
 
 
111
 
 
112
def create_webservice_error_view(error):
 
113
    """Return a view of the error with a webservice request."""
 
114
    request = WebServiceTestRequest()
 
115
    return getMultiAdapter((error, request), name='index.html')