~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/webapp/publication.py

  • Committer: Curtis Hovey
  • Date: 2011-12-24 18:33:21 UTC
  • mto: This revision was merged to the branch mainline in revision 14602.
  • Revision ID: curtis.hovey@canonical.com-20111224183321-hvgfx01s9yi2iliy
Fix includes to webapp zcml.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
        auth_utility = getUtility(IPlacelessAuthUtility)
334
334
        principal = None
335
335
        # +opstats and +haproxy are status URLs that must not query the DB at
336
 
        # all.  This is enforced (see
337
 
        # lib/canonical/launchpad/webapp/dbpolicy.py). If the request is for
338
 
        # one of those two pages, don't even try to authenticate, because we
 
336
        # all.  This is enforced by webapp/dbpolicy.py. If the request is for
 
337
        # one of those two pages, don't even try to authenticate, because it
339
338
        # may fail.  We haven't traversed yet, so we have to sniff the request
340
339
        # this way.  Even though PATH_INFO is always present in real requests,
341
340
        # we need to tread carefully (``get``) because of test requests in our