~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Michael Hudson
  • Date: 2010-08-05 03:07:26 UTC
  • mto: This revision was merged to the branch mainline in revision 11300.
  • Revision ID: michael.hudson@canonical.com-20100805030726-jqmkcizpyy4tw2w0
this seems more likely to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from canonical.launchpad.interfaces.launchpad import IOpenLaunchBag
25
25
import canonical.launchpad.layers as layers
26
26
from canonical.launchpad.webapp import urlsplit
27
 
from canonical.launchpad.webapp.interaction import setupInteraction
28
 
from canonical.launchpad.webapp.publisher import get_current_browser_request
 
27
from canonical.launchpad.webapp.interaction import (
 
28
    get_current_principal, setupInteraction)
29
29
from canonical.launchpad.webapp.servers import ProtocolErrorPublication
30
30
 
31
31
 
107
107
    if layer is not None:
108
108
        layers.setAdditionalLayer(request, layer)
109
109
 
110
 
    principal = get_current_browser_request().principal
 
110
    principal = get_current_principal()
111
111
 
112
112
    if IUnauthenticatedPrincipal.providedBy(principal):
113
113
        login = None