~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/interfaces/person.py

  • Committer: Abel Deuring
  • Date: 2009-01-03 19:32:48 UTC
  • mfrom: (7498 launchpad)
  • mto: This revision was merged to the branch mainline in revision 7499.
  • Revision ID: abel.deuring@canonical.com-20090103193248-s5odmrycs9m77ky6
RF merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    'InvalidName',
27
27
    'JoinNotAllowed',
28
28
    'NameAlreadyTaken',
 
29
    'NoSuchPerson',
29
30
    'PersonCreationRationale',
30
31
    'PersonVisibility',
31
32
    'PersonalStanding',
81
82
from canonical.launchpad.interfaces.wikiname import IWikiName
82
83
from canonical.launchpad.validators.email import email_validator
83
84
from canonical.launchpad.validators.name import name_validator
 
85
from canonical.launchpad.webapp.interfaces import NameLookupFailed
84
86
 
85
87
 
86
88
class PersonalStanding(DBEnumeratedType):
1978
1980
    webservice_error(409)
1979
1981
 
1980
1982
 
 
1983
class NoSuchPerson(NameLookupFailed):
 
1984
    """Raised when we try to look up an IPerson that doesn't exist."""
 
1985
 
 
1986
    _message_prefix = "No such person"
 
1987
 
 
1988
 
1981
1989
# Fix value_type.schema of IPersonViewRestricted attributes.
1982
1990
for name in ['allmembers', 'activemembers', 'adminmembers', 'proposedmembers',
1983
1991
             'invited_members', 'deactivatedmembers', 'expiredmembers',