~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/person.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-15 10:35:32 UTC
  • mfrom: (14517.1.3 new-bzr)
  • Revision ID: launchpad@pqm.canonical.com-20111215103532-q2m4uyk0r8ugiayx
[r=sinzui, poolie][bug=509016] Always load foreign plugins,
 but restrict probers to avoid accidentally opening foreign branches.
 (re-land)

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
    _,
133
133
    helpers,
134
134
    )
135
 
from lp.services.feeds.browser import FeedsMixin
136
 
from lp.services.verification.interfaces.authtoken import LoginTokenType
137
 
from lp.services.mail.interfaces import (
 
135
from canonical.launchpad.browser.feeds import FeedsMixin
 
136
from canonical.launchpad.interfaces.account import (
 
137
    AccountStatus,
 
138
    IAccount,
 
139
    )
 
140
from canonical.launchpad.interfaces.authtoken import LoginTokenType
 
141
from canonical.launchpad.interfaces.emailaddress import (
 
142
    EmailAddressStatus,
 
143
    IEmailAddress,
 
144
    IEmailAddressSet,
 
145
    )
 
146
from canonical.launchpad.interfaces.launchpad import (
138
147
    INotificationRecipientSet,
139
148
    UnknownRecipientError,
140
149
    )
141
 
from lp.services.verification.interfaces.logintoken import ILoginTokenSet
 
150
from canonical.launchpad.interfaces.logintoken import ILoginTokenSet
142
151
from canonical.launchpad.webapp import (
143
152
    ApplicationMenu,
144
153
    canonical_url,
258
267
    GPGKeyNotFoundError,
259
268
    IGPGHandler,
260
269
    )
261
 
from lp.services.identity.interfaces.account import (
262
 
    AccountStatus,
263
 
    IAccount,
264
 
    )
265
 
from lp.services.identity.interfaces.emailaddress import (
266
 
    EmailAddressStatus,
267
 
    IEmailAddress,
268
 
    IEmailAddressSet,
269
 
    )
270
270
from lp.services.messages.interfaces.message import (
271
271
    IDirectEmailAuthorization,
272
272
    QuotaReachedError,
1287
1287
        # Only the IPerson can be traversed to, so it provides the IAccount.
1288
1288
        # It also means that permissions are checked on IAccount, not IPerson.
1289
1289
        self.person = self.context
1290
 
        from lp.services.database.lpstorm import IMasterObject
 
1290
        from canonical.launchpad.interfaces.lpstorm import IMasterObject
1291
1291
        self.context = IMasterObject(self.context.account)
1292
1292
        # Set fields to be displayed.
1293
1293
        self.field_names = ['status', 'status_comment']
3935
3935
 
3936
3936
        # XXX j.c.sackett 2010-09-15 bug=628247, 576757 There is a validation
3937
3937
        # system set up for this that is almost identical in
3938
 
        # lp.app.validators.validation, called
 
3938
        # canonical.launchpad.interfaces.validation, called
3939
3939
        # _check_email_available or similar. It would be really nice if we
3940
3940
        # could merge that code somehow with this.
3941
3941
        email = getUtility(IEmailAddressSet).getByEmail(newemail)