~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1400
1400
    @operation_parameters(
1401
1401
        name=TextLine(required=True, constraint=name_validator),
1402
1402
        displayname=TextLine(required=False),
1403
 
        description=TextLine(required=False))
 
1403
        description=TextLine(required=False),
 
1404
        private=Bool(required=False),
 
1405
        )
1404
1406
    @export_factory_operation(Interface, [])  # Really IArchive.
1405
1407
    @operation_for_version("beta")
1406
 
    def createPPA(name=None, displayname=None, description=None):
 
1408
    def createPPA(name=None, displayname=None, description=None, private=False):
1407
1409
        """Create a PPA.
1408
1410
 
1409
1411
        :param name: A string with the name of the new PPA to create. If
1410
1412
            not specified, defaults to 'ppa'.
1411
1413
        :param displayname: The displayname for the new PPA.
1412
1414
        :param description: The description for the new PPA.
 
1415
        :param private: Whether or not to create a private PPA. Defaults to
 
1416
            False, which means the PPA will be public.
1413
1417
        :raises: `PPACreationError` if an error is encountered
1414
1418
 
1415
1419
        :return: a PPA `IArchive` record.