~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-15 13:18:37 UTC
  • mfrom: (13662.5.6 push-creates-package)
  • Revision ID: launchpad@pqm.canonical.com-20110815131837-cp2nb9wc52fswn67
[r=adeuring][bug=386596] Push creates source package names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    'ITeamCreation',
28
28
    'ITeamReassignment',
29
29
    'ImmutableVisibilityError',
30
 
    'InvalidName',
31
30
    'NoSuchPerson',
32
31
    'OPEN_TEAM_POLICY',
33
32
    'PersonCreationRationale',
1405
1404
        )
1406
1405
    @export_factory_operation(Interface, [])  # Really IArchive.
1407
1406
    @operation_for_version("beta")
1408
 
    def createPPA(name=None, displayname=None, description=None, private=False):
 
1407
    def createPPA(name=None, displayname=None, description=None,
 
1408
                  private=False):
1409
1409
        """Create a PPA.
1410
1410
 
1411
1411
        :param name: A string with the name of the new PPA to create. If
2255
2255
        addresses associated with.
2256
2256
 
2257
2257
        When merging teams, from_person must have no IMailingLists
2258
 
        associated with it. If it has active members they will be deactivated -
2259
 
        and reviewer must be supplied.
 
2258
        associated with it. If it has active members they will be deactivated
 
2259
        - and reviewer must be supplied.
2260
2260
 
2261
2261
        :param from_person: An IPerson or ITeam that is a duplicate.
2262
2262
        :param to_person: An IPerson or ITeam that is a master.
2447
2447
    """A change in team membership visibility is not allowed."""
2448
2448
 
2449
2449
 
2450
 
class InvalidName(Exception):
2451
 
    """The name given for a person is not valid."""
2452
 
 
2453
 
 
2454
2450
class NoSuchPerson(NameLookupFailed):
2455
2451
    """Raised when we try to look up an IPerson that doesn't exist."""
2456
2452