~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/webapp/login.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-03-18 20:17:35 UTC
  • mfrom: (10542.3.1 bug-540697)
  • Revision ID: launchpad@pqm.canonical.com-20100318201735-hqr2ivi5p71xrz5j
[r=rockstar][ui=none][bug=540697] Do not add a notification message
        to the request on UnauthorizedView as it redirects users to an
        external site (the OpenID provider)

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    read_only_page = ViewPageTemplateFile(
57
57
        '../templates/launchpad-readonlyfailure.pt')
58
58
 
59
 
    notification_message = _('To continue, you must log in to Launchpad.')
60
 
 
61
59
    def __call__(self):
62
60
        # In read only mode, Unauthorized exceptions get raised by the
63
61
        # security policy when write permissions are requested. We need
105
103
            # unauthenticated sessions. Only after this next line is it safe
106
104
            # to use the ``addNoticeNotification`` method.
107
105
            allowUnauthenticatedSession(self.request)
108
 
            self.request.response.addNoticeNotification(
109
 
                self.notification_message)
110
106
            self.request.response.redirect(target)
111
107
            # Maybe render page with a link to the redirection?
112
108
            return ''